Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- From: Gabriel Dragffy <dragffy@xxxxxxxxx>
- Date: Thu, 12 Apr 2007 14:26:40 +0100
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
- Follow-Ups:
- Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- From: Nicolas Kaiser
- Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- References:
- Converting Blusfish syntax-highlighted PHP code in to a PDF
- From: Gabriel Dragffy
- Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- From: Nicolas Kaiser
- Converting Blusfish syntax-highlighted PHP code in to a PDF
- Prev by Date: Re: Icon Idiocy in Gnome
- Next by Date: Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- Previous by thread: Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- Next by thread: Re: Converting Blusfish syntax-highlighted PHP code in to a PDF
- Index(es):
Relevant Pages
|