Frank Wunderlich wrote:
-------- Original-Nachricht --------
Datum: Mon, 22 Jan 2007 15:55:38 +0100
Von: Philippe Lhoste <[EMAIL PROTECTED]>
An: [email protected]
Betreff: [scite] Re: bracket matching
I have lost what is the problem you want to fix.
From what I recall from this thread, is that there was indeed a problem
in the HTML lexer which has been fixed in SCM, and otherwise you have to
define braces.<lexer name>.style=<style number> to get correct handling
of brace matching.
i've tried
braces.hypertext.style=50 #javascript operator
and some other values (34,35,101,116,127) i found in html.properties for
operator-styles
and setting braces.sloppy to 1. now i got no highlighting.
problem was like described in 1st posting the jumps between brackets using
Ctrl+E.
See, for example, this setting in the cpp.properties:
# Braces are only matched in operator style
braces.cpp.style=10
That, and of course braces.sloppy=1
here the comment says "Braces only matched in operator style" in html.properties there is
a braces.xml.style with comment "no brace matching in XML"
i need the setting for html lexer to get the ctrl+e correctly working.
btw. what is "SCM"?
Well, current builds of SciTE now work properly on the originally
posted "embedded PHP fragment" test case - braces highlighting and
matching work as expected. The same for embedded JavaScript, BTW.
NOTE that the above work without any braces.<lexer>.style settings!
These settings will LIMIT where braces can be matched - they do not
ENABLE braces matching. The default of 0 allows [e.g.] comments and
strings to be checked for matches too, which is usually not what one
would want.
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest