3

What could I use to print javascript, php or css code in colour? I've tried the following:

  1. Textmate
  2. Dreamweaver CS3
  3. Firefox viewsource extension
  4. saving webpage as a pdf

All of these result in black and white code. It seems such a fundamental thing and most Windows text editors have this basic functionality. Has anyone got anything that can do this in OS X?

4 Answers 4

2

Have you tried TextWrangler or its big brother, BBEdit from Bare Bones Software?

1
  • textwrangler saves the day :) cool little editor.
    – Pickledegg
    Oct 13, 2009 at 10:39
2

Vim/Gvim has no problem with printing syntax highlighting. Just pick some nice colour scheme (preferably with a white background) and :hardcopy.

2
  • i thank you for your help, unfortunately I'm not quite at geek factor 9 yet, so I've chosen a laymans tool :p
    – Pickledegg
    Oct 13, 2009 at 10:40
  • oh, i don't mind ... i also thought gvim was a little weird before i started using it ... then after picking out my brain, and putting it a new one and completely reprogramming it, i now happily use it everyday :)
    – Rook
    Oct 15, 2009 at 17:17
1

I know for a fact Netbeans can do this, and it is multiplatform. It can also save the code as a webpage with syntax highlighting that you can print.

0
1

Xcode and Dashcode will preserve the syntax highlighting when printing and copying to the clipboard.

2
  • cool i'll check out dashcode, although it appears to have vanished from my os. :)
    – Pickledegg
    Oct 13, 2009 at 10:41
  • @Pickledegg: You'll have to have the Developer Tools installed. They come as an optional install on the Mac OS X installation disc. Alternatively, you can download them from developer.apple.com/technology/Xcode.html (free ADC membership required). Oct 13, 2009 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .