Defining HTML brackets

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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 ...
    3. [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...
    4. 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...
    5. 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/...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139