Skip to content

A way to suppress highlighting on piece of text/code? #198

@khuntercevera

Description

@khuntercevera

Prerequisites

  • Put an X in this box if you have done the following:
    • Ensured the issue has not already been raised
    • Ensured the issue is caused by this package

Description

Possible option to suppress code highlighting in "corner cases". I'm trying to insert bash script with the minted package, but the bash characters such as $ complicate the text highlighting.

Steps to reproduce & Minimum working example

Inside a regular latex file (in our case using the \usepackage{minted}, but probably more widespread).

Regular text...

\begin{minted}[mathescape,breaklines, bgcolor=bg,xleftmargin=1mm
]{bash}
cut -f2 file1.txt | awk ' { if ($1 != 0) { print } } ' >  file2.txt
cut -f3 file3.txt | awk ' { if ($1 != 0) { print } } ' >  outfile.txt
\end{minted}

Regular text, but now highlighting is green and inconsistent.

Suggestion

If the feature does not already exist (could not find any documentation or other comments), maybe a method to suppress highlighting:

text

%%%language-latex suppress begin
\begin{minted}
...
\end{minted}
%%%language-latex suppress end

more text with consistent highlighting.

Additional Information

  • Ubuntu 16.04
  • Atom text editor
  • language-latex 1.2.0
  • latex 0.50.0 package

Thanks in advance!

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