[TxMt] Re: html pretty print

Jacob Rus jacobolus at gmail.com
Thu May 24 11:43:31 UTC 2007


Juan Falgueras wrote:
>>> ....but, why it doesn't colour when you give it selections?  ehmmm
>>> I usually need to cut functions, etc...
>>> but anyway the Brad Choate solution is much much better than the 
>>> enscript one.  Thanks
>>> Is there some trick for make B. Choate script to colour portions of 
>>> text?
>>
>> You're going to have to explain what you're having trouble with.  I 
>> have no trouble turning selections to html with that command...
> 
>     Yes.  If you select a slice of your source code like...
> -------

> without the definitions of styles.. and the the rendering of this html 
> is uncoloured...
> 
> You need to select ALL the source text to get the full html with colour 
> styles, etc.
> 
> If you do so, the generated html starts with all the necessary styles:

So what's the problem?  Add the relevant CSS for the theme you want to 
the page that you're putting the selection html in, and you're all set.




More information about the textmate mailing list