SyntaxHighlighter 2.x 에서 지원하는 언어는 아래와 같으며 pre 테그의 class 속성에서 brush 의 값을 해당 언어의 Alias 로 지정해주면 사용이 가능하다.
SyntaxHighlighter : syntaxhighlighter_2.0.320
Brush name |
Brush aliases |
File name |
bash, shell |
shBrushBash.js | |
c-sharp, csharp |
shBrushCSharp.js | |
cpp, c |
shBrushCpp.js | |
css |
shBrushCss.js | |
delphi, pas, pascal |
shBrushDelphi.js | |
diff, patch |
shBrushDiff.js | |
groovy |
shBrushGroovy.js | |
js, jscript, javascript |
shBrushJScript.js | |
java |
shBrushJava.js | |
perl, pl |
shBrushPerl.js | |
php |
shBrushPhp.js | |
plain, text |
shBrushPlain.js | |
py, python |
shBrushPython.js | |
rails, ror, ruby |
shBrushRuby.js | |
scala |
shBrushScala.js | |
sql |
shBrushSql.js | |
vb, vbnet |
shBrushVb.js | |
xml, xhtml, xslt, html, xhtml |
shBrushXml.js |
추가
as, actionscript, ActionScript, as3, AS3 |
shbrushas3.js | |
|
사용법은 [여기]
SyntaxHighlighter 2.0 supports:
Name |
Value |
Description |
|
|
Allows you to turn detection of links in the highlighted element on and off. If the option is turned off, URLs won't be clickable. Click here for a demo. |
|
|
Allows you to add a custom class (or multiple classes) to every highlighter element that will be created on the page. Click here for a demo. |
|
|
Allows you to force highlighted elements on the page to be collapsed by default. Click here for a demo. |
|
|
Allows you to change the first (starting) line number. Click here for a demo. |
|
|
Allows you to easily change the font size in the highlighted elements without having to mess around with additional CSS. Click here for a demo. |
|
|
Allows you to turn gutter with line numbers on and off. Click here for a demo. |
|
|
Allows you to highlight one or more lines to focus user's attention. When specifying as a parameter, you have to pass an array looking value, like If you are changing |
|
|
Allows you to highlight a mixture of HTML/XML code and a script which is very common in web development. Setting this value to true requires that you have shBrushXml.js loaded and that the brush you are using supports this feature. Click here for a demo. |
|
|
Allows you to disable toolbar and gutter with a single property. Click here for a demo. |
|
|
Allows you to show column ruler on top of highlighted elements. Click here for a demo. |
|
|
Allows you to turn smart tabs feature on and off. Click here for a demo. |
|
|
Allows you to adjust tab size. Click here for a demo. |
|
|
Toggles toolbar on/off. Click here for a demo. |
|
|
Allows you to turn line wrapping feature on and off. Click here for a demo. |
설정 예)
<PRE class="brush:xml; smart-tabs: true; wrap-lines: true; first-line: 10;">
...
</PRE>
something here...
- http://alexgorbatchev.com 에서는 공식적으로 MXML을 지원하지는 않는듯 합니다. Google 검색에서도 mxml 지원 관련된 파일은 찾지 못했습니다. 위에서 링크결어놓은것은 아마 웹서핑중 얻은 파일을 추가했던것 같습니다. shbrushmxml.js 파일은 검색으로 찾을 수 있네요.. 결론은 mxml은 지원되지 않는다 입니다. [본문으로]
'Blog > 유틸, 웹' 카테고리의 다른 글
AS3 꽤 괜찮은 간단기능 자료모음 (2) | 2013.03.08 |
---|---|
설치하려고 하는 Adobe Flash Player 버전은 최신 버전이 아닙니다. (0) | 2010.05.23 |
정규표현식을 쉽게 작성해 보아요 (0) | 2009.12.08 |
MS WORD 2007로 티스토리에 글 올리기! (0) | 2009.11.14 |
Flash Builder 4 Plugin 설치 (0) | 2009.11.12 |