modulefdoc_highlight
Syntax highlighting of Fortran, from fformat's tokens. Classes: k keywords and intrinsics,
c comments, d doc comments, s strings, n numbers, p preprocessor lines.
JSON and TOML get a simple scan of their own, with the same classes: k keys, s strings, n
numbers, dates and literals such as true, p TOML table headers and c TOML comments.
Uses
Used by
Subroutines
highlight_data
subroutine highlight_data(code, toml, out)
Write code, JSON or TOML, as highlighted HTML. A key is a string followed by : in JSON, and what
comes before = at the start of a line or after { or , in TOML.
highlight_fortran
subroutine highlight_fortran(code, out, line_anchors)
Write code as highlighted HTML. With line_anchors, each line starts with an anchor ln-N.