Code Formating
I have seen on forums people posting php scripts which are very well formated with different color for comments in codes and different for the code attributes itself etc...
how is it done... is it done by the text editor automatically or its done manually........ as i am sure that it cannot be done manually it must be by some text editor.... please tell me about that editor...
mik-crap posted this at 17:53 — 13th January 2007.
He has: 30 posts
Joined: Jan 2007
Well when it is online, it uses a syntax highlighter. PHP is easily highlighted by using the built in highlight_file to highlight a php file or hightlight_str() to highlight a string.
Highlighting of other languages requires more work though and can be very tricky.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.