home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Neopolitan - Preformatted And HTML Content Type

Preformatted content can be used for `pre and `code sections. Content rendering engines can then output the text without any processing, modificaiton, or escaping.

In addition to `code and `pre blocks I use the preformatted content type for `css and `script sections that lets me pass styles and javascript directly to the engine which adds them to the head of the document. With that I can add arbitrary CSS or JS to any page from the content itself.

For example, here's the code I've added to the page to make the sample header purple with green text

January 2024
Code
-- css

.codeSection .sectionTitle {
  background-color: purple;
  color: green;
}

The preformatted content type can also be used to HTML directly since the renderer can output it without modification.

Previous: [TODO: make ilinks work] ~ Next: [TODO: make ilinks work]

═══ § ═══