Have done some nice things in JujuEdit lately, adding font style selection to syntax hilighting capabilities. Here is a sample, with script elements hilighted and italicized:
<TITLE>Jujusoft - Captain's Log</TITLE> <link rel="stylesheet" type="text/css" href="http://www.jujusoft.com/style.css"/> <script language="JavaScript" src="http://www.jujusoft.com/script.js"></script> </HEAD> <BODY class="jjbody" onload="OnLoad();" field.mod="1041428164" field.src="http://www.jujusoft.com/jujutemplate-web.html" field="include"> <script language="JavaScript">PreOnLoad();</script> <table class="jjlayout"> <tr>
Note the erky hilighting on "field" attributes… this is because they are not standard HTML so they are flagged like this to help you spot potential errors. Nifty, eh?
Once again this sample is exported as HTML with styles added. I’m having a little problem here with indents and line wraps, basically it seems that using the <PRE> element gives me leading whitespace for reproducing tabbed text (essential in reading source code) but will not do line wrapping, so if you copy’n'paste a 120 character long line into HTML then suddenly the page gets forced to 120 characters wide. Every sample here has been pre-wrapped with hard returns to avoid this. Most annoying! I’m thinking about using nested <DIV> elements instead.
The Magic Square!