Converting Blusfish syntax-highlighted PHP code in to a PDF

Gabriel Dragffy dragffy at yandex.ru
Thu Apr 12 13:28:24 UTC 2007


Nicolas Kaiser wrote:
> On 4/12/07, Richard Mancusi <vrman49 at gmail.com> wrote:
>> You can print from Bluefish - it just needs to be setup.  Following is
>> my strange setup - I suspect there is a better way.
>>
>> 1. Edit/Preferences/External programs
>>    Utilities and filters section
>>    Add
>>    (I added 3 "printers" - this is where YOU can get inventive)
>>    Label = Print    Command = lpr '%s'
>>    Label = enscript   Command = enscript -B --font=Courier8 -M letter '%s'
>>    Label = enscript-hdr   Command = enscript --font=Courier8 -M letter '%s'
> 
> Sure, but these don't do syntax-highlighting, do they? Try
> 
> Label = vim-ps   Command = vim "+ha >%s.ps" +q %s 2>/dev/null
> 
> Should create a syntax-highlighted %s.ps postscript file.
> 
> Problem with vim is, it uses different colors than Bluefish. For
> printing the original Bluefish colors you'd need to convert Bluefish
> syntax highlighting to vim.
> If there's an easier way to print with original Bluefish syntax
> highlighting, I'm all ears.
> 
> Cheers,
> n.
> 

A way that I found was to open the PHP in Anjuta, this has syntax 
highlighting and can print to cups-pdf. Only thing is the colours are 
different to bluefish, which is a shame because bluefish's colours are good.




More information about the ubuntu-users mailing list