newLISP Fan Club

Forum => newLISP newS => Topic started by: m35 on November 27, 2008, 07:33:54 AM

Title: jEdit syntax generator (v0.53)
Post by: m35 on November 27, 2008, 07:33:54 AM
The jEdit syntax generator has been thoroughly updated.



Because the syntax is generated, it can automatically add new symbols as newLISP is updated, and it will be perfectly tailored to your newLISP installation (Mac, Linux, Win, OS/2; ASCII, UTF8).



http://www.newlisp.org/index.cgi?Code_Contributions



(//%3C/s%3E%3CURL%20url=%22http://img.photobucket.com/albums/v202/fishwater/jedit-newlisp.png%22%3E%3CLINK_TEXT%20text=%22http://img.photobucket.com/albums/v202/%20...%20ewlisp.png%22%3Ehttp://img.photobucket.com/albums/v202/fishwater/jedit-newlisp.png%3C/LINK_TEXT%3E%3C/URL%3E%3Ce%3E)



v0.50

* Upgraded to be properly compatible with jEdit 4.3.

* Some deprecated functions for newLISP v10 are now highlighted as INVALID.

* Full newlispdoc 1.8 syntax has also been added
Title:
Post by: m i c h a e l on November 30, 2008, 04:00:54 PM
m35,



JEdit complained about not allowing an empty BEGIN tag when parsing the resulting xml file, and it looks like there is an extra entry for Literal2 (lines 218-223) in your generator script that is causing the problem. Removing those lines (in the xml file) fixes the problem.



m i c h a e l
Title:
Post by: Lutz on November 30, 2008, 04:47:24 PM
newlisp9996-OSX-utf8.xml generated with 9.9.96 and the utility in the link works fine for me on jEdit 4.2 final, when loading cgi.lsp and crypto.lsp. Did you update .jedit/modes/catalog?





I like the colors, but prefer perhaps MacVim because I like TABs
Title:
Post by: m35 on November 30, 2008, 06:53:38 PM
Haha you're absolutely right Michael.

newlispdoc devours the original code


||| <!-- NO_ESCAPE attribute removed for jEdit 4.3 -->
||| <SPAN TYPE="LITERAL2">
|||| <BEGIN><?[ (string "[text" "]") ]></BEGIN>
|||| <END><?[ (string "[/text" "]") ]></END>
||| </SPAN>


and the html is displayed like this.


||| <!-- NO_ESCAPE attribute removed for jEdit 4.3 -->
||| <SPAN TYPE="LITERAL2">
|||| <BEGIN></BEGIN>
|||| <END></END>
||| </SPAN>


The text is still there in the html, but isn't displayed in the browser. This also occurs for the <?xml version="1.0"?> at the top of the syntax template string.



Lutz, I'm thinking just link directly to the .lsp file and not use newlispdoc?
Title:
Post by: Lutz on December 01, 2008, 05:22:25 AM
newlispdoc now handles <?...> tags correctly, an updated source listing has been posted for jEdit:



http://www.newlisp.org/code/jedit-newlisp-mode-generator.lsp.sh.html



and



http://www.newlisp.org/code/jedit-newlisp-mode-generator.lsp.sh.src.html



and the updated newlispdoc:



http://www.newlisp.org/syntax.cgi?code/newlispdoc.txt



and syntax.cgi



http://www.newlisp.org/syntax.cgi?code/syntax-cgi.txt



ps: newlispdoc has syntax.cgi built-in to pregenerate html source files. syntax.cgi is for on-the-fly highlighting.
Title:
Post by: cormullion on December 01, 2008, 08:41:46 AM
One day Lutz a useful  enhancement you could add to newlispdoc would be to allow the use of external formatting modules in place of syntax.cgi.  I'm running a hacked newlispdoc that calls my own formatter (I prefer CSS styling, for example...)
Title:
Post by: m35 on December 15, 2008, 03:01:16 PM
v0.51

- simplified newlispdoc highlighting

- added platform specific symbols



v0.52

- added missing '@link'

- fixed digit regex

- added generator version note to generated file



Note that a recent Java update for Mac OS X has broken jEdit v4.3pre*. There is a fairly simple workaround posted here (//http).
Title:
Post by: Lutz on December 15, 2008, 03:30:15 PM
m35's improved number regex has also been added to:



http://www.newlisp.org/syntax.cgi?code/syntax-cgi.txt



and:



http://www.newlisp.org/syntax.cgi?code/newlispdoc.txt
Title:
Post by: m35 on January 04, 2009, 01:47:46 AM
v0.53

- Additional fix to digit regex