|
12 | 12 | <style type="text/css"> |
13 | 13 | body { margin-left: .5in } |
14 | 14 | h1, h2, h3, h4, .footer { margin-left: -.4in; } |
| 15 | + a.Extension { display: inline-block; width: 5em; height:2.5em; border: 1px solid black; vertical-align: top; text-align: center } |
15 | 16 | </style> |
16 | 17 | </head> |
17 | 18 |
|
@@ -66,49 +67,42 @@ <h2>FAQ</h2> |
66 | 67 | <h3 id="langs">For which languages does it work?</h3> |
67 | 68 | <p>The comments in <tt>prettify.js</tt> are authoritative but the lexer |
68 | 69 | should work on a number of languages including C and friends, |
69 | | - Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. |
| 70 | + Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, Makefiles, |
| 71 | + and Rust. |
70 | 72 | It works passably on Ruby, PHP, VB, and Awk and a decent subset of Perl |
71 | | - and Ruby, but, because of commenting conventions, doesn't work on |
72 | | - Smalltalk, or CAML-like languages.</p> |
73 | | - |
74 | | - <p>LISPy languages are supported via an extension: |
75 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js" |
76 | | - ><code>lang-lisp.js</code></a>.</p> |
77 | | - <p>And similarly for |
78 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-clj.js" |
79 | | - ><code>Clojure</code></a>, |
80 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css.js" |
81 | | - ><code>CSS</code></a>, |
82 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-go.js" |
83 | | - ><code>Erlang</code></a>, |
84 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-erlang.js" |
85 | | - ><code>Go</code></a>, |
86 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs.js" |
87 | | - ><code>Haskell</code></a>, |
88 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js" |
89 | | - ><code>Lua</code></a>, |
90 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js" |
91 | | - ><code>OCAML, SML, F#</code></a>, |
92 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-n.js" |
93 | | - ><code>Nemerle</code></a>, |
94 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js" |
95 | | - ><code>Protocol Buffers</code></a>, |
96 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-scala.js" |
97 | | - ><code>Scala</code></a>, |
98 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js" |
99 | | - ><code>SQL</code></a>, |
100 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-tex.js" |
101 | | - ><code>TeX, LaTeX</code></a>, |
102 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vhdl.js" |
103 | | - ><code>VHDL</code></a>, |
104 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js" |
105 | | - ><code>Visual Basic</code></a>, |
106 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js" |
107 | | - ><code>WikiText</code></a>, |
108 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-xq.js" |
109 | | - ><code>XQuery</code></a>, and |
110 | | - <a href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-yaml.js" |
111 | | - ><code>YAML</code></a>. |
| 73 | + and Ruby, but, because of commenting conventions, but doesn't work on |
| 74 | + Smalltalk.</p> |
| 75 | + |
| 76 | + <p>Other languages are supported via extensions: |
| 77 | + <div> |
| 78 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-apollo.js">Apollo</a> |
| 79 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-basic.js">Basic</a> |
| 80 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-clj.js">Clojure</a> |
| 81 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-css.js">CSS</a> |
| 82 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-dart.js">Dart</a> |
| 83 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-erlang.js">Erlang</a> |
| 84 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-go.js">Go</a> |
| 85 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-hs.js">Haskell</a> |
| 86 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lisp.js">Lisp, Scheme</a> |
| 87 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-llvm.js">Llvm</a> |
| 88 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-lua.js">Lua</a> |
| 89 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-ml.js">OCAML, SML, F#</a> |
| 90 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-mumps.js">Mumps</a> |
| 91 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-n.js">Nemerle</a> |
| 92 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-pascal.js">Pascal</a> |
| 93 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-proto.js">Protocol buffers</a> |
| 94 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-r.js">R, S</a> |
| 95 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-rd.js">RD</a> |
| 96 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-scala.js">Scala</a> |
| 97 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-sql.js">SQL</a> |
| 98 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-tcl.js">TCL</a> |
| 99 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-tex.js">Latek</a> |
| 100 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vb.js">Basic, VB</a> |
| 101 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-vhdl.js">CHDL</a> |
| 102 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-wiki.js">Wiki</a> |
| 103 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-xq.js">XQ</a> |
| 104 | + <a class="Extension" href="http://code.google.com/p/google-code-prettify/source/browse/trunk/src/lang-yaml.js">Yaml</a> |
| 105 | + </div> |
112 | 106 |
|
113 | 107 | <p>If you'd like to add an extension for your favorite language, please |
114 | 108 | look at <tt>src/lang-lisp.js</tt> and file an |
@@ -229,7 +223,7 @@ <h3>How can I customize the colors and styles of my code?</h3> |
229 | 223 |
|
230 | 224 | <div class="footer"> |
231 | 225 | <!-- Created: Tue Oct 3 17:51:56 PDT 2006 --> |
232 | | -<!-- hhmts start -->Last modified: Fri May 27 20:23:23 PDT 2011 <!-- hhmts end --> |
| 226 | +<!-- hhmts start -->Last modified: Fri Feb 22 18:02:14 EST 2013 <!-- hhmts end --> |
233 | 227 | </div> |
234 | 228 | </body> |
235 | 229 | </html> |
0 commit comments