Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Defining HTML brackets

New Here ,
Jan 19, 2009 Jan 19, 2009
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!
TOPICS
Extensions
681
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2009 Jan 19, 2009
LATEST
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!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines