Skip to content

Commit

Permalink
Try one case of TeX inline code syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Mar 9, 2021
1 parent ecf28df commit 809c61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion styleguide.md
Expand Up @@ -78,7 +78,7 @@ Note that there's often an associated rule in the Modelica grammar, which should

Appearance | LaTeX source
--- | ---
`if-equation` | `\lstinline[language=grammar]!if-equation!`
`if-equation` | `\lstinline[language=grammar]!if-equation!`{:.language-tex}

Note: The hyphenation may sometimes appear grammatically incorrect, but the consistent use of hyphenation helps readability, and in some contexts the hyphen gives extra safety against reading the language name/keyword as part of the sentence structure.
For example, compare:
Expand Down

0 comments on commit 809c61d

Please sign in to comment.