Author Topic: XML context tagging?  (Read 2711 times)

Shelku

  • Community Member
  • Posts: 45
  • Hero Points: 0
XML context tagging?
« on: January 13, 2011, 11:38:48 pm »
Does SlickEdit support context tagging of XML files?

If I have an example file:
Code: [Select]
<int name="myVar" value="10"/>
<int name="myVar2" value="myVar"/>

I would like to "go to definition" of "myVar" or find references. Right now if I try that, I get an error dialog box that shows "Tag 'myVar'" not found.

Scott H

  • Senior Community Member
  • Posts: 240
  • Hero Points: 9
Re: XML context tagging?
« Reply #1 on: January 14, 2011, 03:40:03 pm »
There's currently no functionality like what you described because there's no context for it.  There are some variants of XML that we do light tagging on, such as docbook, because there are clear examples of declaring a symbol and referencing it in other locations in the file.

However, in your example, there's no context for what you want it to do.  For example, SlickEdit would have to know that <int name="myVar"> meant that you were declaring a symbol named "myVar" that will be referenced in other locations.  Since it doesn't know that, it's not identifying "myVar" as a symbol and won't know that there's a definition for it.