View Source template_compiler_highlight (template_compiler v3.5.0)
Generate syntax highlighted HTML from template source. The highlighter scans the template, derives source-position annotations from the tokens, adds debug-point annotations, and then merges those annotations back into the original template text to emit spans, checkboxes, and line numbers without reconstructing the source.
Summary
Functions
Return syntax highlighted HTML for an in-memory template source.
Return syntax highlighted HTML for an in-memory template source.
Return syntax highlighted HTML for a template source file.
Return syntax highlighted HTML for a compiled template module and add checkbox inputs for its debug points.
Functions
Return syntax highlighted HTML for an in-memory template source.
-spec highlight_binary(binary(), file:filename_all()) -> {ok, binary()} | {error, term()}.
Return syntax highlighted HTML for an in-memory template source.
-spec highlight_file(file:filename_all()) -> {ok, binary()} | {error, term()}.
Return syntax highlighted HTML for a template source file.
Return syntax highlighted HTML for a compiled template module and add checkbox inputs for its debug points.