how to disable indentNextLine (and the like) inside comments and/or HTML code?
Submitted by Thursday, 6 May, 2004 - 23:33
on
Hello jEdit users and devs,
I've been using jEdit for about half a year and I simply love it. Installed a bunch of extremely useful plugins, re-wrote my php scheme file to have php5 syntax highlighting and other things missing from the default php scheme (like inline-php inside html tags, etc) but one thing is really bugging me.
How can I turn off indentation of next lines (indentNextLine) when i'm inside comments? Is it possible? I have defined my own indentNextLine RegExp pattern inside the php.xml file, but I'm still affected by it ...
I can say I am quite familier with the language scheme xml files. I saw that for a language, the main properties (like indentNextLine) must be defined inside the <PROPS> tags for the <MODE> and cannot be defined for a <RULE>.
If I could disable indentation of next line when inside comments, then a much simpler but at the same time more customizable regexp patter could be used for indentNextLine ... for example, indent everything not ending in ";|,|.|}" (it's not what I use, but just an example).
Also, is it possible to disable the "Deep Indent" (which I simply love) inside comments? It is really annoying when you don;t close an opened bracket on the same line
I have a couple other suggestion regarding the syntax highlighting engine but i'll post them in the bug/request forum. I can ask though a question: is it possible to have the same symbol/string for MARK_FOLLOWING and MARK_PREVIOUS? For example I would like "::" to mark everything before as a class name (say, KEYWORD4) and everything after as a property/method (say KEYWORD3). If it's doable from within the xml mode file, please somebody give me a hint.
Thanks a lot, Bogdan
I've been using jEdit for about half a year and I simply love it. Installed a bunch of extremely useful plugins, re-wrote my php scheme file to have php5 syntax highlighting and other things missing from the default php scheme (like inline-php inside html tags, etc) but one thing is really bugging me.
How can I turn off indentation of next lines (indentNextLine) when i'm inside comments? Is it possible? I have defined my own indentNextLine RegExp pattern inside the php.xml file, but I'm still affected by it ...
I can say I am quite familier with the language scheme xml files. I saw that for a language, the main properties (like indentNextLine) must be defined inside the <PROPS> tags for the <MODE> and cannot be defined for a <RULE>.
If I could disable indentation of next line when inside comments, then a much simpler but at the same time more customizable regexp patter could be used for indentNextLine ... for example, indent everything not ending in ";|,|.|}" (it's not what I use, but just an example).
Also, is it possible to disable the "Deep Indent" (which I simply love) inside comments? It is really annoying when you don;t close an opened bracket on the same line
I have a couple other suggestion regarding the syntax highlighting engine but i'll post them in the bug/request forum. I can ask though a question: is it possible to have the same symbol/string for MARK_FOLLOWING and MARK_PREVIOUS? For example I would like "::" to mark everything before as a class name (say, KEYWORD4) and everything after as a property/method (say KEYWORD3). If it's doable from within the xml mode file, please somebody give me a hint.
Thanks a lot, Bogdan