Re: Converting Blusfish syntax-highlighted PHP code in to a PDF



On 4/10/07, Gabriel Dragffy <dragffy@xxxxxxxxx> wrote:
Is there any way to save the lovely syntax-highlighted code of Bluefish
in to a PDF? I ask only because I need to have code samples, and it
would be fantastic if they could be highlighted. Also PDF is nice and
compatible :)

I haven't found an option to print from Bluefish itself yet, however
if you just need syntax-highlighting, you can do so with vim, like
this:

vim "+ha >test.ps" +q test.php

should print syntax-highlighted to a postscript file. ("+q" is for
quitting vim immediately after printing.)
If this is useful enough for you, it might be possible to elaborate on
it (like printing to pdf straight away) and add it to "external
commands" in Bluefish, for convenience.

Cheers,
n.

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Template Displayed on Screen Differs From what Prints on Paper
    ... which is all printing fine, ... The PDF printing settings are ... "Suzanne S. Barnhill" wrote: ...
    (microsoft.public.word.pagelayout)
  • Re: "Save as pdf" re-sizes my Word document.
    ... > Word .doc and Saved to PDF, ... > " at 100%+the home printer. ... > file look different again at the printing company when ... Use common fonts. ...
    (microsoft.public.mac.office.word)
  • Re: [SLE] PDF converter
    ... there), printing to PostScript from Word / Excel, then using ... See my previous post for a working setup of printing from windows directly to pdf via samba. ... The actual script is: ...
    (SuSE)
  • Re: Printing problem at sections breaks
    ... When you make any change to "page" properties, Mac OS printing subsystem ... So you need to print to PDF, then use a PDF editor to stitch the jobs back ... There's no problem with viewing it on screen, just with printing it in one ... I cannot print it as a booklet because the logic of the booklet ...
    (microsoft.public.mac.office.word)
  • Re: duplex printing, sections & page orientation
    ... without going the manual route of printing odd pages then even. ... Instead of printing directly, Print to PDF. ... If you have eps illustrations, an extra step is required to work round ...
    (microsoft.public.mac.office.word)