SourceForge.net a écrit :
Feature Requests item #1496266, was opened at 2006-05-27 22:03
Summary: SVG Support added

Initial Comment:
Hi,

I've added SVG support, by dropping the element list
into the html.properties file. (it works)

Now I have the problem: To have no JavaScript and
ECMA-Script available in SVG files.
JavaScript is just blank looking text, and not yet
colored syntax.

How could I make it available, to send the updated
html.properties back to you guys?

yis
  jens mueller ([EMAIL PROTECTED])

#--- Added SVG ----#

svg.elements=\
a altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform \ circle clipPath color-profile cursor definition-src defs desc ellipse feBlend feColorMatrix \ feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap \ feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge \ feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile \ feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri \ foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata \ missing-glyph mpath path pattern polygon polyline radialGradient rect script set stop style \ svg switch symbol text textPath title tref tspan use view vkern

#--- Added SVG ----#

Good idea. Last year, I did a lot of SVG and I was happy with the default XML support, but highlighting elements can help catching typos. I was too frustrated by the lack of support of JavaScript in XML, but never had the time to hack the lexer.
Ideally, it would be nice to support too CSS and even path syntax!
But for complex languages, actually mixes of several languages, an advanced lexer like Tentacle's one, able to aggregate distinct lexers, switching on some constructs, managing the state space... It may be possible in the current Scintilla, perhaps needing to change the existing lexers, but that would be major change. If such thing is possible, ideally you would be able to compose a complex lexer just by setting some properties, thus making specialized lexers like HTML for PHP or for ASP or for JSP, XML for SVG or for DocBook, etc., thus resolving the crowding of state space.

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to