Back to Notenik Docs


The Notenik Knowledge Base

9.11 Web-Making Fields ↑

9.11.1 Code

The word Code can be used as both a label and a type.

Add a Code field to a Collection in order to store a code snippet as part of each Note in that Collection.

This field type will be inferred for a label of Code.

A Collection may have any number of fields with a type of code.

When editing, a code field will appear as a multiple lines of editable text.

When displayed, a code field will be enclosed in HTML pre and code tags, so that line breaks will be honored, and the code will be displayed using a monospaced font..

Although code can always be embedded in the body of a Note using the usual Markdown formatting conventions, having a separate code field can sometimes be useful as well.

A code field can be useful for including examples of HTML coding, or any other sort of programming code.


Next: 9.11.2 Index