Pier-Shout does Smalltalk syntax highlighting to HTML. It is used for
example in book.seaside.st and on various Pier blogs. It could be
adapted to be used for LaTeX too.

Lukas

On 11 February 2010 13:31, Schwab,Wilhelm K <[email protected]> wrote:
> Stef,
>
> Understood about the poor implementation.  LaTeX would be fine for me, 
> provided it produces a syntax colored output.  The whole point (in my view) 
> is to get the comments to stand out so I can give them a careful check for 
> things I do not want to air in public.
>
> Bill
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Stéphane 
> Ducasse
> Sent: Thursday, February 11, 2010 7:17 AM
> To: [email protected]
> Subject: Re: [Pharo-project] File Out html with Syntax Highlighting
>
> Background note:
>        we removed this functionality because it was badly implemented 
> hardcoding
>        <h1> everywhere.
> A fileouter should act as a visitor on the class not hack inside the fileout.
>
> People could extend the latex exporter damien cassou did. And damien did not 
> added '\section{' everytwhere with conditional inside the fileout behavior....
> like this is done in Squeak.
>
> Stef
>
>
>
> On Feb 11, 2010, at 3:11 AM, Levente Uzonyi wrote:
>
>> On Wed, 10 Feb 2010, Nathan Tuttle wrote:
>>
>>> I find it very useful when learning a language to see the code
>>> accurately syntax highlighted on a web page when a snippet is shown.
>>> I want to design a fileout method that will allow developers to file
>>> out code with html to put into a web page.
>>>
>>> I know I need to use RBFormatter; any ideas on where to go from here?
>>> Where do I get a codestream for example?
>>
>> In Squeak there's a "copy html" menu item in the context menu of
>> StringHolder (available in Browser, Workspace, etc.) which copies the
>> contents as html to the clipboard. If you just want a few code
>> snippets with syntax highlight you can use this (the syntax highlight
>> is provided by Shout).
>>
>> If you need something more complex, you can still use Shout to
>> higlight your code (which will give you Text objects) and Text >>
>> #printHtmlOn: to convert it to html.
>>
>> Note that both the "copy html" menu item and the Text to html
>> conversion was removed from Pharo so you have to roll your own if you
>> need it. Syntax highlighting can still be done with Shout.
>>
>>
>> Levente
>>
>>>
>>> thanks
>>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to