Tag Archives: code highlighter

[Javascript] google-code syntax highlighter

Prettify GC Syntax Highlighter
참조: http://www.simplex3d.org/uncategorized/prettify-gc-syntax-highlighter/

Alternatively you can highlight one or several code segments:

  1. <pre class=”prettyprint lang-YOURLANG linenums highlight:1-3,5-6″>
  2.   // line 2
  3.   // line 3
  4.   // line 4
  5.   // line 5
  6. </pre>

Replace YOURLANG with one of the following:

  • aea
  • agc
  • apollo
  • bsh
  • c
  • cc
  • cl
  • cpp
  • cs
  • csh
  • css-str
  • cv
  • cxx
  • cyc
  • default-markup
  • el
  • fs
  • go
  • hs
  • htm
  • html
  • java
  • js
  • json
  • lisp
  • lua
  • m
  • ml
  • mxml
  • perl
  • pl
  • pm
  • proto
  • py
  • rb
  • scala
  • scm
  • sh
  • sql
  • vhd
  • vhdl
  • wiki
  • xhtml
  • xml
  • xsl
  • yaml
  • yml