Skip to main content
Participant
January 19, 2009
Question

Defining HTML brackets

  • January 19, 2009
  • 1 reply
  • 679 views
Is it possible to extend DW so that it recognizes curly brackets, i.e. "{" and "}" as tag brackets? In other words, I want to write HTML comments both like this: <!-- --> as well as like this: {!-- --}.

I looked inside my \Configuration\CodeColoring\CodeColoring.xml file, and thought I might be on the right track by editing the HTML scheme as the attached code, but to no avail.

Any ideas? Thanks a lot!
This topic has been closed for replies.

1 reply

Inspiring
January 19, 2009
The CodeColoring.xml only affects Code View code coloring.

You may be able to get some of this to work. It would be a major effort,
and I'm not sure it would achieve what you want, but here's how I'd
approach it.

Look in the Configuration/Objects folder. This is where all of the
Insert menu commands are defined. You'd need to define a new "object"
for any tag that you want to insert in this new format.

The Configuration/Inpectors folder defines PIs. You'll need to define
PIs for any tags that you want to insert from there.

If you want DW to "recognize curly brackets as tags brackets" in Design
View, then you'll need to create a Translator.

HTH,
Randy


> Is it possible to extend DW so that it recognizes curly brackets, i.e. "{" and
> "}" as tag brackets? In other words, I want to write HTML comments both like
> this: <!-- --> as well as like this: {!-- --}.
>
> I looked inside my \Configuration\CodeColoring\CodeColoring.xml file, and
> thought I might be on the right track by editing the HTML scheme as the
> attached code, but to no avail.
>
> Any ideas? Thanks a lot!