Open JRDetwiler opened 4 years ago
The syntax highlighting for Plain TeX can be turned on by checking plaintex.cwl
in "Configure TeXstudio -> Completion".
I didn't find this setting earlier, thank you. That does make completion nicer to work with, but I don't think that solves the syntax highlighting issue. For example, many of my loaded fonts still have a red background.
the syntax checker understands latex, it does not understand pure tex....
\newif
and \newcounter
in latexdocument.cpp
. Even worse, some tex-nical codes are really hard or even impossible for an editor to statically analysis. For example, tex codes that use \csname ... \endcsname
and change category codes.\font
seems as simple as a line \font{cmd}#dS
added to tex.cwl
, like #693 did for \newXXX
macros.@JCDetwiler Apart from \font
, if you find other not-yet-supported tex primitives or plain tex macros, just post them with examples. And I will find if I can help to add support for (some of) them.
I understand and thank you for taking an interest in the feature.
I opened up a conference template I recently received from someone who's been using TeX for a few decades now. I see the following in red:
\centerline{text}
\+
for rows in \settabs
(and similarly, &
gets flagged for tabular command outside tabular env
)\dosupereject
\pagebody
\input epsf
(which I believe belongs to my distribution of TeX, since I got it to compile). I have no idea how doable this one is though because I think it probably implies errors for every \input
.
Environment
Feature Request
Could you please add support for Plain TeX (that is, namely,
tex
andpdftex
)? I had to learn Plain TeX after LaTeX and I enjoy using TeXstudio, but now I've lost all syntax highlighting and building at the click of a button. I made a user build commandtex %.tex | txs:///view
but that still leaves the problem of macros looking rather ugly in the editor.