tilde.club/~brennen/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
4.3 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <html>
  3. <head>
  4. <title>SHJS - Syntax Highlighting in JavaScript</title>
  5. <!-- used by JS -->
  6. <style type="text/css"></style>
  7. <link rel="stylesheet" type="text/css" href="doc/style.css">
  8. <script type="text/javascript" src="doc/style.js"></script>
  9. <script type="text/javascript" src="sh_main.min.js"></script>
  10. <script type="text/javascript" src="lang/sh_cpp.min.js"></script>
  11. </head>
  12. <body onload="body_load();">
  13. <div id="heading"><h1>SHJS - Syntax Highlighting in JavaScript</h1></div>
  14. <div id="main">
  15. <table><tr><td>
  16. <p class="first">
  17. SHJS is a JavaScript program which highlights source code passages in HTML
  18. documents. Documents using SHJS are highlighted on the client side by the web
  19. browser.
  20. </p>
  21. <p>
  22. SHJS uses language definitions from <a
  23. href="http://www.gnu.org/software/src-highlite/">GNU Source-highlight</a>. This
  24. gives SHJS the ability to highlight source code written in many different
  25. languages:
  26. </p>
  27. <table id="threecol">
  28. <tr>
  29. <td>
  30. Bison<br>
  31. C<br>
  32. C++<br>
  33. C#<br>
  34. ChangeLog<br>
  35. CSS<br>
  36. Desktop files<br>
  37. Diff<br>
  38. Flex<br>
  39. GLSL<br>
  40. Haxe<br>
  41. HTML<br>
  42. Java<br>
  43. </td>
  44. <td>
  45. Java properties files<br>
  46. JavaScript<br>
  47. JavaScript with DOM<br>
  48. LaTeX<br>
  49. LDAP files<br>
  50. Log files<br>
  51. LSM (Linux Software Map) files<br>
  52. M4<br>
  53. Makefile<br>
  54. Objective Caml<br>
  55. Oracle SQL<br>
  56. Pascal<br>
  57. Perl<br>
  58. </td>
  59. <td>
  60. PHP<br>
  61. Prolog<br>
  62. Python<br>
  63. RPM spec files<br>
  64. Ruby<br>
  65. S-Lang<br>
  66. Scala<br>
  67. Shell<br>
  68. SQL<br>
  69. Standard ML<br>
  70. Tcl<br>
  71. XML<br>
  72. Xorg configuration files<br>
  73. </td>
  74. </tr>
  75. </table>
  76. <p>
  77. SHJS comes with themes taken from the
  78. <a href="http://andre-simon.de/">Highlight</a> program.
  79. </p>
  80. <p>
  81. SHJS is distributed under the <a href="doc/gplv3.html">GNU General Public License version 3</a>.
  82. </p>
  83. </td><td>
  84. <div id="exampleDiv">
  85. <a id="previous" href="#" onclick="previous(); return false;" title="previous style">&larr;</a>
  86. <a id="next" href="#" onclick="next(); return false;" title="next style">&rarr;</a>
  87. <select id="themeSelect" onchange="return loadStyle();" disabled>
  88. <option>acid</option>
  89. <option>berries-dark</option>
  90. <option>berries-light</option>
  91. <option>bipolar</option>
  92. <option>blacknblue</option>
  93. <option>bright</option>
  94. <option>contrast</option>
  95. <option>darkblue</option>
  96. <option>darkness</option>
  97. <option>desert</option>
  98. <option>dull</option>
  99. <option>easter</option>
  100. <option>emacs</option>
  101. <option>golden</option>
  102. <option>greenlcd</option>
  103. <option>ide-anjuta</option>
  104. <option>ide-codewarrior</option>
  105. <option>ide-devcpp</option>
  106. <option>ide-eclipse</option>
  107. <option>ide-kdev</option>
  108. <option>ide-msvcpp</option>
  109. <option>kwrite</option>
  110. <option>matlab</option>
  111. <option>navy</option>
  112. <option selected>nedit</option>
  113. <option>neon</option>
  114. <option>night</option>
  115. <option>pablo</option>
  116. <option>peachpuff</option>
  117. <option>print</option>
  118. <option>rand01</option>
  119. <option>the</option>
  120. <option>typical</option>
  121. <option>vampire</option>
  122. <option>vim</option>
  123. <option>vim-dark</option>
  124. <option>whatis</option>
  125. <option>whitengrey</option>
  126. <option>zellner</option>
  127. </select>
  128. <pre id="codePre" class="sh_cpp">
  129. #include &lt;iostream&gt;
  130. using namespace std;
  131. int main(int argc, char ** argv) {
  132. cout &lt;&lt; "Hello world" &lt;&lt; endl;
  133. return 0;
  134. }
  135. </pre>
  136. <img id="throbberImg" src="doc/ajax-loader.gif" alt="Loading...">
  137. <div id="caption">C++ code highlighted using the <code id="themeCode">nedit</code> theme</div>
  138. </div>
  139. </td></tr><tr><td colspan="2">
  140. <address>
  141. Copyright &copy; 2007, 2008 <a href="mailto:gnombat@users.sourceforge.net">gnombat@users.sourceforge.net</a>
  142. <a href="http://www.gnu.org/licenses/gpl.html"><img src="doc/gplv3-88x31.png" width="88" height="31" alt="GPL Logo"></a>
  143. <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=186094&amp;type=1" width="88" height="31" alt="SourceForge.net Logo" /></a>
  144. </address>
  145. </td></tr></table>
  146. </div>
  147. <div id="navigation">
  148. Home |
  149. <a href="doc/news.html">News</a> |
  150. <a href="doc/documentation.html">Documentation</a> |
  151. <a href="doc/browsers.html">Browsers</a> |
  152. <a href="doc/download.html">Download</a> |
  153. <a href="http://sourceforge.net/tracker/?group_id=186094">Bugs</a> |
  154. <a href="doc/gplv3.html">License</a> |
  155. <a href="doc/links.html">Links</a>
  156. </div>
  157. </body>
  158. </html>