Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tbates opened this issue Feb 16, 2016 · 1 comment

Comments

@tbates
Copy link
Member

tbates commented Feb 16, 2016

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.

@ckristo
Copy link

ckristo commented Mar 31, 2016

+1 .. a code block I've problems with is \begin{minted} -- see: https://ckristo.net/owncloud/index.php/s/ffSV4dWaNZYrAx5

I guess implementing this feature would also fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants