I tried to make a user define language for latex. I want to highlight the whole following line:
\section{section title}
The section title is different for each section. Therefore, I checked the prefix box.
However, the highlight stops at the space in the section title.
Can you add "treat keyword as a symbol" to the keyword list?
Latex also use $ to bracket the math symbol, such as $math symbol$. Can you add $ for the bracket matching?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just a comment: LaTeX uses $ to bracket mathematical expressions that are embeded in text, but it also uses $$ to bracked equations that are shown on a separate line. For example, both of the following are legitimate commands in LaTex:
$ math expression $
$$ math expression $$
The trick would be to ensure that $$ was seen as a single "open bracket" rather than two "open-and-closed brackets".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to make a user define language for latex. I want to highlight the whole following line:
\section{section title}
The section title is different for each section. Therefore, I checked the prefix box.
However, the highlight stops at the space in the section title.
Can you add "treat keyword as a symbol" to the keyword list?
Latex also use $ to bracket the math symbol, such as $math symbol$. Can you add $ for the bracket matching?
Just a comment: LaTeX uses $ to bracket mathematical expressions that are embeded in text, but it also uses $$ to bracked equations that are shown on a separate line. For example, both of the following are legitimate commands in LaTex:
$ math expression $
$$ math expression $$
The trick would be to ensure that $$ was seen as a single "open bracket" rather than two "open-and-closed brackets".
uiuiui it's not so easy with the correct Latex syntax.
(please see 'L2tabu - The most severe mistakes...' at CTAN:info/l2tabu/english/l2tabuen.pdf)
as i know, the $$-command is a proprietary TEX comand and should not be used any more.
In LaTeX2e there is the
\[ math expression \] environment for math expressions, substituting the old $$ command !!