Syntax Highlighting - Practical Considerations

Practical Considerations

Syntax highlighting is one strategy to improve the readability and context of the text; especially for code that spans several pages. The reader can easily ignore large sections of comments or code, depending on what one desires. Syntax highlighting also helps programmers find errors in their program. For example, most editors highlight string literals in a different color. Consequently, spotting a missing delimiter is much easier because of the contrasting color of the text. Brace matching is another important feature with many popular editors. This makes it simple to see if a brace has been left out or locate the match of the brace the cursor is on by highlighting the pair in a different color.

Some text editors can also export the color markup in a format that is suitable for printing or for importing into word-processing or other kinds of text-formatting software; for instance an HTML, colorized LaTeX, PostScript or RTF version of its syntax highlighting.

Read more about this topic:  Syntax Highlighting

Famous quotes containing the word practical:

    Great statesmen seem to direct and rule by a sort of power to put themselves in the place of the nation over which they are set, and may thus be said to possess the souls of poets at the same time they display the coarser sense and the more vulgar sagacity of practical men of business.
    Woodrow Wilson (1856–1924)