I've written a plugin for GeSHi for newlisp for those who use it to colorize code on their websites. It colorizes code using the same colors as the newlisp colorizer cgi and adds links to documentation for functions.
http://www.artfulcode.net/projects/
GeSHi plugin
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
I spent some time persuading the Geshi project guys to include a newLISP file as part of the basic install. The file is basically a merge of the two files I had from Lutz and Jeff, with corrections supplied by Benny at Geshi. Existing Geshi users should probably carry on using their own versions, but at least it will be in subsequent revisions by default.
And let it be noted here that I didn't actually do any original work myself ... :)
And let it be noted here that I didn't actually do any original work myself ... :)
I believe it has something to do with the peculiar olfactory quality of British men's circulatory system's liquid state hemoglobin transport fluid ;)Jeff wrote:And I am no giant. I am under 6 foot. I don't even know what, "fee fie foe fum," means!
-- xytroxon
"Many computers can print only capital letters, so we shall not use lowercase letters."
-- Let's Talk Lisp (c) 1976
-- Let's Talk Lisp (c) 1976
-
- Posts: 2038
- Joined: Tue Nov 29, 2005 8:28 pm
- Location: latiitude 50N longitude 3W
- Contact:
Currently I believe it's in the development trunk (whatever that means):
http://geshi.svn.sourceforge.net/viewvc ... iew=markup
and the sample code I pointed them to is
http://geshi.svn.sourceforge.net/viewvc ... o/newlisp/
All this scm stuff is too much for me to understand.
BTW: most of the edits I made were to make the file conformant, cos Benny told me it failed the entrance test...
so those were fixed Lutz's and Jeff's work were merged. Perhaps further changes could be done in the right open source way...
http://geshi.svn.sourceforge.net/viewvc ... iew=markup
and the sample code I pointed them to is
http://geshi.svn.sourceforge.net/viewvc ... o/newlisp/
All this scm stuff is too much for me to understand.
BTW: most of the edits I made were to make the file conformant, cos Benny told me it failed the entrance test...
Code: Select all
Validating language file for 'newlisp' ... Failed
1. NOTICE Language file contains unescaped tabulator chars (probably
for indentation)!
2. WARNING Language file does not contain a specification of the
copyright!
3. WARNING Language file does not contain a specification of the
release version!
4. WARNING Language file does not contain a specification of the date
it was started!
5. WARNING Language file does not state that it belongs to GeSHi!
6. WARNING Language file does not state that it is a language file
for GeSHi!
7. WARNING Language file does not state that it is provided under the
terms of the GNU GPL!
8. ERROR Language file contains no $language_data['COMMENT_MULTI']
structure to check!
from the PHP newLISP GeSHI syntax file:
probably this should go into the QUOTEMARKS section instead of COMMENT_MULTI. Or perhaps there is a QUOTEMARKS_MULTI ?. Perhaps Bebe can help? Anyways, the way its done now, it works, when colors are chosen right.
Code: Select all
'COMMENT_MULTI' => array('[text]' => '[/text]', '{' => '}'), // also used for strings