How can I print source code in OS X (HTML/PHP) with number lines and without long line truncation? I was used to Gedit on Linux, but here it seems I can't obtain the same with applications such as TextWrangler or TextEdit.
|
You can print source code with line numbers and without truncation in TextWrangler, the key is Soft wrap text.
Note: you may want to set up "Editor Defaults" in TextWrangler's Preferences, and have it Soft wrap text for you for each file you edit, and to a specified width too. |
||||
|
|
|
Have you looked at GeSHi? http://qbnz.com/highlighter/demo.php You didn't specify the purpose for printing out - but I use this to "prettify" any code I expect to be printed - it does line numbering and syntax highlighting for a wide range of languages. Hope this helps! |
|||
|
|
|
and read the (extensive) man page for additional features. |
|||
|
|