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



Nicolas Kaiser wrote:
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.


Thank you so much for all the replies.

I have to say that ultimately a PDF is much more useful to me than PS.

Going the VIM route seems good. Can it go straight in to PDF though?

Also the files that I edit are stored remotely, and I edit them in
Bluefish via GnomeVFS (samba shares). If I put the VIM command in to
bluefish is it going to handle this OK?

Many thanks, Gabriel

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



Relevant Pages

  • Re: How to adjust bookmarks and links when merging PDF files using gs?
    ... | 38 0 obj ... This is clearly consistent with the PDF ... I build a vim script (vim being the only editor I ...
    (comp.lang.postscript)
  • Re: Vim with +printer and +postscript
    ... I'm in need of Vim's capability of printing or converting to PDF ... them (as in to a printer; vim shows them on screen fine, ... On Windows you have to properly set 'printfont' option including region ...
    (comp.editors)
  • Re: Vim with +printer and +postscript
    ... I'm in need of Vim's capability of printing or converting to PDF ... them (as in to a printer; vim shows them on screen fine, ... PostScript is ... But I'm on Linux and I haven't had much success with printing non-Latin1 text directly from Vim even though it has +postscript +printer. ...
    (comp.editors)
  • Re: Vim with +printer and +postscript
    ... I'm in need of Vim's capability of printing or converting to PDF ... them (as in to a printer; vim shows them on screen fine, ... On Windows you have to properly set 'printfont' option including region ...
    (comp.editors)
  • Vim with +printer and +postscript
    ... I'm in need of Vim's capability of printing or converting to PDF ... them (as in to a printer; vim shows them on screen fine, ... find a vim build with +printer and +postscript options? ...
    (comp.editors)