Tree [8edeeb] nette /

File Date Author Commit
 changes.txt 2010-10-15 Jakub Vrana Jakub Vrana [cde1c4] Highlight Nette Latte
 demo.html 2010-10-15 Jakub Vrana Jakub Vrana [cde1c4] Highlight Nette Latte
 jquery.jush.js 2010-10-19 Jakub Vrana Jakub Vrana [23dd5c] jQuery plugin
 jush-api.js 2010-05-13 Jakub Vrana Jakub Vrana [717a7b] Merge from head
 jush-help.wsf 2010-10-19 Jakub Vrana Jakub Vrana [38b042] Help
 jush.css 2010-10-26 Jakub Vrana Jakub Vrana [cd4a71] Update CSS
 jush.js 2010-10-28 Jakub Vrana Jakub Vrana [8edeeb] Link
 readme.html 2010-10-19 Jakub Vrana Jakub Vrana [9f649c] Update 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-10-28 Jakub Vrana Jakub Vrana [71e78d] Use docs of current version

Read Me

<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>JUSH - JavaScript Syntax Highlighter</title>

<h1>JUSH - JavaScript Syntax Highlighter</h1>
<p>Highlights the full stack of PHP application starting with HTML, PHP, SQL and JavaScript code and ending with HTTP headers, <code>php.ini</code> settings or database variables.</p>
<li><a href="demo.html">Demo</a></li>
<li><a href="sql.html">SQL highlighter for different databases</a></li>
<li><a href="tests.html">Tests</a></li>
<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 class="jush">&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 class="jush">&lt;pre class="jush"&gt;</code> tags will be highlighted. Language is determined by the class name beginning with "jush-" (e.g. <code class="jush">&lt;pre class="jush-js"&gt;</code>). Default language is <code>htm</code>. It is also possible to use <code class="jush">&lt;pre class="language-*"&gt;</code>.
<p>Alternativelly call <code class="jush-js">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');

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks