Tree [d9a8b6] JUSH_1_10_0 /
History



File Date Author Commit
changes.txt 2010-10-13 Jakub Vrana Jakub Vrana [d9a8b6] Release
demo.html 2010-10-11 Jakub Vrana Jakub Vrana [25371c] Allow language- class for identifying code
jush-api.js 2010-05-13 Jakub Vrana Jakub Vrana [717a7b] Merge from head
jush-help.wsf 2010-10-11 Jakub Vrana Jakub Vrana [73949c] Parse my.ini
jush.css 2010-10-11 Jakub Vrana Jakub Vrana [eabda4] Parse js_doc
jush.js 2010-10-12 Jakub Vrana Jakub Vrana [bb5da9] MySQL 5.5
readme.html 2010-03-31 jakubvrana jakubvrana [05987c] Readme
sql.html 2010-08-06 Jakub Vrana Jakub Vrana [4b1295] Utilize hash
tests.html 2010-03-26 jakubvrana jakubvrana [2c96c4] Tests
tests.js 2010-05-13 Jakub Vrana Jakub Vrana [717a7b] Merge from head

Read Me

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JUSH - JavaScript Syntax Highlighter</title>
<body>

<h1>JavaScript Syntax Highlighter</h1>
<ul>
<li><a href="http://jush.sourceforge.net/">Homepage</a></li>
</ul>

<h3>Installation instructions</h3>

<ol>
<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.style('jush.css');
jush.highlight_tag('pre');
&lt;/script&gt;
</pre>
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>.
</li>
</ol>
<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
</pre>
<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.style('jush.css');
jush.highlight_tag('code');
jush.highlight_tag('pre');
</script>