Skip to content

[Feature request] Correct highlight on custom environments #182

@Strauman

Description

@Strauman

##Motivation
Being able to correctly syntax-highlight own defined environments.

##Example usage

\lstnewenvironments{myListing}{}{}
\begin{myListing}
VerbatimHighlighting here
\end{myListing}

Thoughts on implementation

Get the environment names from settings. Then reformat the user settings to a regex and write this regex to a file that can be included in grammars/latex.cson.

I think that verbatim environments and math environments are the environments that I would define myself (sometimes), and I suspect that these are the ones that are most common to define yourself (as opposed to lists, tikz, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions