Converting Blusfish syntax-highlighted PHP code in to a PDF

Nicolas Kaiser halforc at gmail.com
Thu Apr 12 11:13:28 UTC 2007


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.




More information about the ubuntu-users mailing list