Chrome을 사용하여 구문 강조 표시기를 사용하는 초안 블로그 게시물 (블로거)을 볼 때 추가 라인이 삽입됩니다. Chrome 전용 SyntaxHighlighter를 사용하는 보조 라인?
그러나 IE에 잘 보이는 : 내가 잘못 여기서 뭐하는 거지 어떤 아이디어?
편집 :
이내가 사용하고 SyntaxHighlighter의 설정/설정은 다음과 같습니다 :
<!-- Syntax Highlighter Additions START -->
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushcsharp.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js' type='text/javascript'/>
<script language='javascript' type='text/javascript'>
SyntaxHighlighter.config.bloggerMode = true;
SyntaxHighlighter.all();
</script>
<!-- Syntax Highlighter Additions END -->
편집 :
그리고 생성 된 HTML은 다음과 같습니다 갖는
<pre class="brush: csharp;">using System;
<br />using System.Text;
<br />using System.Collections.Generic;
<br />using System.Linq;
<br />using Microsoft.VisualStudio.TestTools.UnitTesting;
<br />using AccountTypeFollowUp;
<br />
<br />namespace PluginsUnitTests
<br />{
<br /> [TestClass]
<br /> public class AccountTypeFollowUpTests
<br /> {
<br /> [TestMethod]
<br /> public void AccountTypeFollowUp_Account_Is_Supplier()
<br /> {
<br /> throw new NotImplementedException();
<br /> }
<br />
<br /> [TestMethod]
<br /> public void AccountTypeFollowUp_Account_Is_Client()
<br /> {
<br /> throw new NotImplementedException();
<br /> }
<br />
<br /> [TestMethod]
<br /> public void AccountTypeFollowUp_Account_Is_Other)
<br /> {
<br /> throw new NotImplementedException();
<br /> }
<br /> }
<br />}
<br /></pre>
그래, 내가 2.1 버전을 지적한다면, 역시 수정되었다는 것을 알았다. 나는 맞춤 버전을 시도 할 것이다, 고마워! – glosrob
나는 또한 크롬과 같은 문제에 직면하고있다 – srk
맞춤 스크립트 ^^ 나를 위해 일했다. 또한 원하는 경우 2.1 버전에 연결하면 FF, IE 및 Chrome에서 사용할 수 있습니다. – glosrob