Browse files


git-svn-id: 9d3eea12-fc29-0410-b379-a5151d7be1fb
  • Loading branch information...
1 parent 5c8fe93 commit 05987c60ccbd1b2113742b46e052ab565bfb4d90 jakubvrana committed Mar 31, 2010
Showing with 40 additions and 0 deletions.
  1. +40 −0 readme.html
@@ -0,0 +1,40 @@
+<html lang="en">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>JUSH - JavaScript Syntax Highlighter</title>
+<h1>JavaScript Syntax Highlighter</h1>
+<li><a href="">Homepage</a></li>
+<h3>Installation instructions</h3>
+<li>Copy <a href="jush.css">jush.css</a> and <a href="jush.js">jush.js</a> into your directory.</li>
+<li>Add following snippet before the <code>&lt;/body&gt;</code> tag in HTML file:
+<pre class="jush">&lt;script type="text/javascript" src="jush.js"&gt;&lt;/script&gt;
+&lt;script type="text/javascript"&gt;'jush.css');
+All <code>&lt;pre class="jush"&gt;</code> tags will be highlighted. Language is determined by the class name beginning with "jush-" (e.g. <code>&lt;pre class="jush-js"&gt;</code>). Default language is <code>htm</code>.
+<p>Alternativelly call <code>jush.highlight(language, text)</code> to syntax highlight single text.</p>
+<h3>Command-line help reference</h3>
+<p>It is also possible to use JUSH for opening the appropriate documentation in a browser. On Windows, it is possible to run:</p>
+<pre>Syntax: WScript jush-help.wsf filename line column [tabsize] [word]
+Example: WScript jush-help.wsf readme.html 2 2
+<p>The example should open a browser with documentation of the <code class="jush">&lt;html&gt;</code> tag which is at position 2:2 of this file.</p>
+<script type="text/javascript" src="jush.js"></script>
+<script type="text/javascript">'jush.css');

0 comments on commit 05987c6

Please sign in to comment.