Closed thany closed 9 years ago
@thany Have a look at my extension https://github.com/sprintr/brackets-svg-code-hints
Of course there would be an extension for this :)
Is your extension properly context-aware? I.e. it would suggest only attributes applicable to the editing element, and suggest only elements that may exist within the parent one?
I didn't understand the parent relation. it is context-aware in a sense that it provides attributes of the editing element.
Sorry, I mean that it doesn't hint elements in places where they may not appear...
No, I meant its implementation, eg linearGradient
can be inside svg
and defs
, So it will be a little hard to implement.
Closing since code hints for SVG are now a core Brackets feature. They don't have all the fancy context-awareness you suggested, but I think the right place for those improvements would be in Brackets itself rather than here.
Well, maybe in Brackets 1.2... But 1.2 has a huge bug that keeps many users from using it.
@thany That bug was present in 1.1 also and it didn't stop a few hundred thousand people from updating :-)
At any rate, that doesn't justify building a complete duplicate of that functionality in this extension. If you really want, it'd be far less work to download the Brackets source and run the 1.2 JS code in the 1.0 native shell.
Would it be possible to have this extension also add code hints for SVG files, andpossibly for tags within
<svg>
within rwgular html?