From: Denis B. <dbi...@wa...> - 2013-01-06 16:48:13
|
Le dimanche 06/01/13 à 17h26, Tim Hoffmann <hof...@hi...> a écrit : > "Custom Highlighting" is very limited. OK. It is not clear that it is required to click twice in order to be able to enter something in the field. > In "Custom Environments", you can define an environment, say "myverb" > as verbatim. Then text between \begin{myverb} \end{myverb} is > highlighted as verbatim. OK. BTW, in Config > Syntax Highlighting, "numbers" is the only one in plural form. > "Custom Commands" are sort of superseeded by the possibility for a > custom cwl file, which offers more settings. It just announces these > commands to the LaTeX syntax checker (restart required). Also, > spellchecking is disabled in custom commands. OK. Same remark as above about clicking twice. > > More over, same question for shortcuts as the ones that could be > > defined for instance with: > > > > [...] > > This kind of dynamically redefining meaning and highlighting is not > supported. Too bad! ;) > The complete highlighting is defined in tex.qnfa. If you > built the executable yourself, you can statically change the > highlighting by adapting it. E.g. add > > <context id="shortverb" format="verbatim"> > > <start parenthesis="shortverb:open" parenthesisWeight="20" > format="keyword">|</start> > > <stop parenthesis="shortverb:close" parenthesisWeight="20" > format="keyword">|</stop> > > </context> OK. But it could be nice to making this dynamically. > However, then every "|" will start/end an verbatim environment Indeed. Thanks! -- Denis |