Syntax highlighting

The next step up with respect to basic IDE features is syntax highlighting - this is where your editor will colour the different parts of your code to match what they are. For example, variables might be blue, strings red, comments green, etc. This has been a boon to programmers for well over a decade now, and yet some people still manage to live without out - they probably do not even realise what they are missing.

When you have code highlighting, you can spot comment blocks just by their colour - if they start and end in odd places, you do not need to be extra vigilant to spot it, because the colour will always be correct.


Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Online help >>

Previous chapter: Line numbering

Jump to:


Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.