Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Heraldmonkey #1
Defining HTML brackets
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!
<scheme name="HTML" id="HTML"
doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,PHP_My
SQL,LibraryItem,WML,XSLT" priority="50">
<ignoreCase>Yes</ignoreCase>
<ignoreTags>No</ignoreTags>
<defaultText name="Text" id="CodeColor_HTMLText" />
<defaultTag name="Other Tags" id="CodeColor_HTMLTag" />
<defaultAttribute />
<commentStart name="Comment"
id="CodeColor_HTMLComment"><![CDATA[<!--]]></commentStart>
<commentEnd><![CDATA[-->]]></commentEnd>
<commentStart><![CDATA[<%--]]></commentStart>
<commentEnd><![CDATA[--%>]]></commentEnd>
<!--Start curly bracket Stuff -->
<commentStart><![CDATA[{!--]]></commentStart>
<commentEnd><![CDATA[--}]]></commentEnd>
<brackets name="Bracket"
id="CodeColor_HTMLBracket"><![CDATA[{[()]}]]></brackets>
<!--End curly bracket Stuff -->
Heraldmonkey Guest
-
Custom tags that are not angle brackets
I was wondering if it is possible to create a tag library that uses tags with square brackets rather than angled ones. Can anyone give me any help... -
grep with [ ] brackets ... ?
I'd thought I'd seen everything with perl until I saw John Krahn give this code as a solution: #syntax: unfold.pl filename > newfilename ... -
[PHP] square brackets in form names violate HTML specs?
On Sat, Sep 13, 2003 at 06:15:29PM +0000, Curt Zirzow wrote: : * Thus wrote Eugene Lee (list-php@fsck.net): : > Something I've noticed in PHP is a... -
square brackets in form names violate HTML specs?
On Sat, 13 Sep 2003 12:34:12 -0500, Eugene Lee created an award-winning crop circle <20030913173412.GD8130@localhost.Earthlink.net>, which, when... -
Brackets () in variable used for pattern match
Hi, I'm new to perl and programming, so please please dont throw the manual at me!! Im trying to do a pattern match e.g. if $foo =~ m/$bar/... -
Randy Edmunds #2
Re: Defining HTML brackets
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!Randy Edmunds Guest



Reply With Quote

