![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | jush-api.js | 2020-06-10 13:25 | 450K | |
![]() | jush.js | 2025-03-15 08:49 | 177K | |
![]() | tests.js | 2020-06-10 13:25 | 21K | |
![]() | changes.txt | 2020-06-10 13:25 | 3.1K | |
![]() | jush-help.wsf | 2020-06-10 13:25 | 2.3K | |
![]() | jush.css | 2020-06-10 13:25 | 2.3K | |
![]() | demo.html | 2020-06-10 13:25 | 1.2K | |
![]() | sql.html | 2020-06-10 13:25 | 1.2K | |
![]() | json.php | 2020-06-10 13:25 | 712 | |
![]() | demo.js | 2020-06-10 13:25 | 652 | |
![]() | textarea.html | 2020-06-10 13:25 | 603 | |
![]() | tests.html | 2020-06-10 13:25 | 502 | |
![]() | jquery.jush.js | 2020-06-10 13:25 | 477 | |
![]() | composer.json | 2020-06-10 13:25 | 422 | |
![]() | compile.php | 2020-06-10 13:25 | 239 | |
![]() | modules/ | 2021-04-09 12:01 | - | |
Highlights the full stack of PHP application starting with HTML, PHP, SQL and JavaScript code and ending with HTTP headers, php.ini
settings or database variables.
<span style="font: small;"><?php mysql_query("SELECT 1"); ?></span>
.php.ini
directives, HTTP and e-mail headers, Apache config. Anything could be embedded into each other, e.g. header("Content-Type: text/html")
or color: expression(parentNode.style.color)
.echo "This part is important."
. Produces overlapping HTML tags in this case though.<textarea>
syntax highlight.</body>
tag in HTML file:
<script type="text/javascript" src="jush.js"></script>
<script type="text/javascript">
jush.style('jush.css');
jush.highlight_tag('code');
</script>
All <code class="jush">
tags will be highlighted. Language is determined by the class name beginning with "jush-" (e.g. <code class="jush-js">
). Default language is htm
. It is also possible to use <code class="language-*">
.
Alternativelly call jush.highlight(language, text)
to syntax highlight single text.
It is also possible to use JUSH for opening the appropriate documentation in a browser. On Windows, it is possible to run:
Syntax: WScript jush-help.wsf filename line column [tabsize] [word] Example: WScript jush-help.wsf readme.html 2 2
The example should open a browser with documentation of the <html>
tag which is at position 2:2 of this file.