Hi Lautaro,
could you please send me what you have?
Thank you
On Thu, Mar 5, 2009 at 3:52 PM, Lautaro Fernández <evaklo(a)gmail.com> wrote:
Some days ago, I've finished to bind a package
that adds 2 brushes into the
html (WARenderCanvas).
To use it you have to add a SHLibrary into your web site, and then doing
something like:
renderContentOn: html
html smalltalkCode:
'
message = ''
ifTrue: [html div with: message]
ifFalse: [html smalltalkCode: message]'
Other brushes(for instance, SQL, Java, CSS, C, etc etc...) can be added
quite easily (really, it's easy) but I didn't need it, so I didn't added.
I've also implemented another package that binds Pier with this package. And
allows you to do in an editor page the following:
[|] message = ''
[|] ifTrue: [html div with: message]
[|] ifFalse: [html smalltalkCode: message]
and the output will be the same as the #renderContentOn:
If you want the code, I can give it to you(or anyone).
I've tested both only on VisualWorks, but I think it will run on other
dialects too.
the JS is from:
http://alexgorbatchev.com/wiki/SyntaxHighlighter
if you download that JS it won't have the Smalltalk parser, because I did it
and it will be published in the following version (that was what Alex told
me).
Hope this helps.
Lautaro Fernández
2009/3/5 Damien Cassou <damien.cassou(a)gmail.com>
Hi,
for my Pier website, I have implemented a pier plugin to pretty-print
code depending on a particular syntax:
https://diaspec.bordeaux.inria.fr/pier/Samples/Air+conditioning
This is interesting but requires some work. What's the easiest
solution to colourize a preformatted text? Is it possible to make a
particular (instance of a) word appear in a different color?
Bye
--
Damien Cassou
http://damiencassou.seasidehosting.st
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Luke LAut SkyFernadezWalker
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki