기타

syntax highlighter 사용법

범고래_1 2014. 8. 29. 02:54

syntax highlighter 사용법.

<pre class="brush:브러시 이름">

"소스 코드"

</pre>


또는


<textarea name="code" class="brush:python;">


print "hello world"


</textarea>



예시>

#include <stdio.h>

void main ( ) {

	printf("hello world");
}



Brush name

Brush aliases

File name

ActionScript3

as3, actionscript3

shBrushAS3.js

Bash/shell

bash, shell

shBrushBash.js

ColdFusion

cf, coldfusion

shBrushColdFusion.js

C#

c-sharp, csharp

shBrushCSharp.js

C++

cpp, c

shBrushCpp.js

CSS

css

shBrushCss.js

Delphi

delphi, pas, pascal

shBrushDelphi.js

Diff

diff, patch

shBrushDiff.js

Erlang

erl, erlang

shBrushErlang.js

Groovy

groovy

shBrushGroovy.js

JavaScript

js, jscript, javascript

shBrushJScript.js

Java

java

shBrushJava.js

JavaFX

jfx, javafx

shBrushJavaFX.js

Perl

perl, pl

shBrushPerl.js

PHP

php

shBrushPhp.js

Plain Text

plain, text

shBrushPlain.js

PowerShell

ps, powershell

shBrushPowerShell.js

Python

py, python

shBrushPython.js

Ruby

rails, ror, ruby

shBrushRuby.js

Scala

scala

shBrushScala.js

SQL

sql

shBrushSql.js

Visual Basic

vb, vbnet

shBrushVb.js

XML

xml, xhtml, xslt, html, xhtml

shBrushXml.js


'기타' 카테고리의 다른 글

칼리 기본 사전 파일 Dictionary  (0) 2017.01.20
세부 지도  (0) 2016.10.19
gcc옵션  (0) 2016.07.12
ollydbg.ini  (0) 2016.05.18
유용한 사이트  (0) 2016.04.03