In a code fragment like the following ...
class Foo
{
internal Foo()
{
for (int i = 0; i < 42; ++i);
}
}
... its various keywords and so on are color-coded when they're displayed in my browsers.
When I do "View source", I don't see anything special in the HTML that would implement this color-coding.
How and/or where is this syntax-specific color-highlighting implemented, then? For example is it built-in to the browsers, or is it implemented by site-specific JavaScript editing the DOM within the browsers?
I find this a difficult question to Google for.
::first-line
and::first-letter
.) So to be able to address & style different text sections, like a programming language keyword likefunction
, or a special symbol like{
, there need to be HTML tags around each thing the CSS rules should be able to target separately from its neighboring content.