You are not logged in.

#1 2007-02-19 14:50:10

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Nice print of source code??

Is there a command If I want to print out my source code, in a readable way? I mean ie my comments might be long and it will be printed half on the next line.. Or there might be similar problems..

According to my friend there is supposed to be a command that will fix your source code and print it out in a nice way, but cant remember the name..


The ultimate Archlinux release name: "I am your father"

Offline

#2 2007-02-19 15:03:46

dubz
Member
From: South Africa
Registered: 2007-02-12
Posts: 5

Re: Nice print of source code??

what you might be looking for is a program called indent.


i cant exactly remember how to use it so

man indent smile


i lol'd

Offline

#3 2007-02-19 15:05:19

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: Nice print of source code??

indent?


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#4 2007-02-19 15:07:33

dubz
Member
From: South Africa
Registered: 2007-02-12
Posts: 5

Re: Nice print of source code??

indent


i lol'd

Offline

#5 2007-02-19 15:34:28

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Nice print of source code??

i think:

enscript --help-pretty-print
man enscript

Offline

#6 2007-02-19 17:34:31

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Nice print of source code??

If your comments are too long to print, you should wrap them yourself.  This is why it's generally recommended to wrap your code at 80 characters.

Offline

#7 2007-02-19 17:57:06

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Nice print of source code??

Another suggestion: a2ps

Offline

Board footer

Powered by FluxBB