Skip to content

mechanism to add additional code-block markers (e.g. \code{}, \begin{example}) #143

@tbates

Description

@tbates

It's common for journals to use \code{} or

\begin{example}
2+2;
/end(example}

As code block markers. It would good to either add some of these to the grammar for marking the contained blocks as verbatim as far as the parser is concerned (or, ideally, handing them off to a user-defined language. So if I set my default language to "R", everything in a code block (perhaps users can use tm.prefs to store these?) would be handed off to the R grammar to highlight.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions