About Data Types | App | Audio | Binary | Code | Date | Image | Number | Time | Video
Code types can be used to designate inline code which should not be parsed like narrative text. Like other types, code types can also provide a fallback format in the viewer in lieu of specifying a particular format function. Code types should not be used to include code which is intended to be run in the viewer, as formats are provided for this function (the format being defined in the viewer itself.)
Code types are primarily useful in reading and writing software documentation.
(@msl-code (v my-view (@p1 …) (@p2 …)) (d code msl))
(@lisp-code (+ 2 3) (d code lisp))
(@html-code <custom-element attrib="value"></custom-element> (d code html))
(@sql-code SELECT * FROM customers WHERE … (d code sql))