Examples
Below is a snippet of syntax highlighted C code:
/* Hello World */ #includeHere is the same code non-highlighted:
/* Hello World */ #includeBelow is another snippet of syntax highlighted C++ code:
// Create "windowCount" Window objects: int windowCount = 10; Window **windows = new Window *; for (int i = 0; i < windowCount; ++i) { windows = new Window; }In the C++ example, the editor has recognized the keywords int
, new
, and for
. The comment at the beginning is also highlighted in a specific manner to distinguish it from working code.
Read more about this topic: Syntax Highlighting
Famous quotes containing the word examples:
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)
“Histories are more full of examples of the fidelity of dogs than of friends.”
—Alexander Pope (16881744)