Change ctrl shift / from html comment to cfml comment

Is there a way to make a quick <!--- comment (cfml) rather than a <!-- comment (html) by using shortcuts like ctrl+shift+/    ?
I am used to adding comments around blocks and lines using keyboard shortcuts or clicking a button on dreamweaver.  Any way to manage these shortcuts?

You can write an extension that defines a new language, maps the .cfml file extension to it, and defines "<!---" as the preferred block-comment style.  (The linked documentation refers to "Brackets," which is just the open-source flavor of Edge Code -- the instructions should work the same for both).  Because Brackets / Edge Code normally treats .cfml as plain HTML, you'll also have to write some code in your extension to remove .cfml from the list of HTML-language file extensions before you can add it to your new CFML language.  Overall, your extension would look something like this:
define(function (require, exports, module) {
    var LanguageManager = brackets.getModule("language/LanguageManager");
    LanguageManager.getLanguage("html").removeFileExtension("cfml");
    LanguageManager.defineLanguage("cfml", {
        name: "CFML",
        mode: ["htmlmixed", "text/x-brackets-html"],
        fileExtensions: ["cfml"],
        blockComment: ["<!---", "-->"]
Hope that helps!
- Peter

Similar Messages

  • Picture resizing default from cmd+ctrl+shift back to cmd+alt+shift?

    Hi,
    Quick question from a CS5 newbie.
    Is there any way to change the picture resizing default from cmd+ctrl+shift back to the CS4 way of doing things ie. cmd+alt+shift.
    Cmd+alt+shift resizes from the centre of the image in CS5 rather than from the left edge, which is really bugging me! Can't find a way of changing it anywhere.
    Many thanks if anyone can help.

    Oh... Well on that same article that i posted above about Disk Utility, there is a section that outlines how to access Single User Mode. Give that a shot and see if you can do a disk repair.
    Hold: Cmd+S on boot
    Type: /sbin/fsck -fy
    That will start a disk repair
    If you get "** The volume (name_of_volume) appears to be OK" then type "reboot" and see if your system will load
    If: "***** FILE SYSTEM WAS MODIFIED *****" Then restart the disk repair untill such time as you get the "** The volume (name_of_volume) appears to be OK" message
    Hope this helps!

  • The hotkey for Private Browsing ( CTRL Shift P ) interferes with another program I have running in the background. Is there a way to disable or change the Firefox Hotkey?

    Question:
    The hotkey for Private Browsing (<CTRL><Shift> <P>) interferes with another program I have running in the background. Is there a way to disable or change the Firefox Hotkey?

    You can try this extension:
    *Customizable Shortcuts: https://addons.mozilla.org/firefox/addon/customizable-shortcuts/

  • Can you change the extensions in Adobe Muse from .html to .htm?

    Can you change the extensions in Adobe Muse from .html to .htm?
    I'm updating an old site where the extensions for the pages were all.htm. This means that when I upload the site index.htm is not being over written by index.html.

    Hi,
    It is not possible to change the extension in Muse at the moment. You can export the site as HTML and change the extensions outside the Muse.
    Regards,
    Aish

  • Noticed a pretty obvious bug in 5.0 ctrl+shift+d will bookmark all sites open but there is NO reference in any of the file menus, where is it located if you didn't know the shortcut from a previous version?

    Noticed a pretty obvious bug in 5.0 ctrl+shift+d will bookmark all sites open but there is NO reference in any of the file menus, where is it located if you didn't know the shortcut from a previous version?

    Right-click '''on''' tab to see that menu item.

  • Can't change typing direction using ctrl+shift in Gmail

    Using firefox 6, in Gmail, I can't change text direction while typing using Ctrl+shift combination. The direction arrows in the email editor are working, just the keyboard shortcut don't.
    Needles to say it works in other browsers.

    shift+ctrl+x not working either in Gmail.
    (In facebook ctrl+shift+x is working)

  • Batch Changing Dreamweaver files from XHTML to HTML

    Almost all of my Dreamweaver files were created in XHTML
    mode. In other
    words, when I created a page and was asked whether I wanted
    to make it
    XHTML compatible, I said YES.
    About the time I moved my websites from my PC to my Mac, I
    finally
    realized that XHTML is a lost cause and changed my doctypes
    to HTML. But
    I just discovered that even PHP include files that have no
    doctype at
    all automatically insert <br /> instead of <br>.
    So I'm assuming that
    there must be some invisible code that says "Format this page
    for XHTML!"
    So I'm wondering if there's a way to change every file in an
    entire site
    (or all my sites) from XHTML to HTML.
    Thanks.

    I use XHTML because it forces good coding practices such as
    always closing
    tags. The usual reason most people give for not using XHTML
    is that IE
    chokes when it is served as xml+application instead of text.
    XHTML Strict
    does not allow target="page.html" but transitional does so I
    stick with
    transitional.
    I won't use XHTML 1.1 because I don't like the modularization
    part of the
    spec. I like a nice standard spec and don't want to create my
    own picking
    and choosing which modules to include.
    Cheryl D Wise
    Adobe Community Expert
    http://starttoweb.com
    "David Blomstrom" <[email protected]> wrote
    in message
    news:[email protected]...
    > Cheryl D Wise wrote:
    >> While I can't help you with your batch convert issue
    would you mind
    >> sharing why you consider XHTML a "lost cause"?
    >>
    >
    > As I recall, the first one to make me scratch my head
    was our own Al
    > Sparber. If I remember correctly, he said he still used
    HTML because
    > XHTML...well, I can't even remember the specific
    reason(s) he gave. But
    > I've noticed a lot of other pros still using HTML.
    >
    > I THOUGHT XHTML was supposed to serve as sort of a
    bridge between HTML and
    > XML, which was supposedly the direction the web was
    heading. But I began
    > reading more and more articles claiming that there was
    little point in
    > embracing XHMTL as the web simply wasn't moving in that
    direction - or at
    > least not very quickly. I'm not sure if this was another
    of those things
    > that Microsoft was retarding or not; I've read so many
    confusing things
    > about XHTML.
    >
    > Still, I stuck with XHTML for years until I recently had
    some sort of
    > problem. I can't even remember what it was offhand -
    something to do with
    > the doctype, I think. Or maybe there's something you can
    do in HTML but
    > not in XHTML.
    >
    > In the meantime, I asked questions about XHTML on forums
    but never got a
    > really clear explanation regarding WHY I should use it.
    XML is even more
    > perpelexing. I understand that it can function similar
    to a database, but
    > I already have a database software program - MySQL. I
    tried to figure out
    > some of the cool things I could do with XHTML and XML
    but all the
    > responses I got from geeks were - well, geeky. They seem
    to use them
    > because they think they're cool, but no one could offer
    any practical
    > reasons for embracing them.
    >
    > So I finally said to H*ll with it and changed all my
    doctypes to HTML. Now
    > I just have to change all my closing tags from </>
    to <>.

  • Can i change the file extension from .html to .cfm in Muse?

    Can I change the file extension from .html to .cfm in Muse?  Then I could use my old file names.

    Muse only supports .html as a page extension at this time.
    Thanks,
    Vinayak

  • Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l nudge cursor

    Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l produce cursor nudges.

    It's a new machine - and the Thunderbolt Display is meant to work with it. You need to just make an appointment at your local Apple Store and have them fix whatever is wrong.
    If you like, you could always try a SMC reset and a PRAM/NVRAM reset to see if either of those will get your keyboard back in working order...
    Clinton

  • [svn:osmf:] 14023: Updating OSMFPlayer to the changed layout APIs, adding a comment, and fixing MediaContainer from ignoring its constructor argument.

    Revision: 14023
    Revision: 14023
    Author:   [email protected]
    Date:     2010-02-07 07:54:38 -0800 (Sun, 07 Feb 2010)
    Log Message:
    Updating OSMFPlayer to the changed layout APIs, adding a comment, and fixing MediaContainer from ignoring its constructor argument.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as
        osmf/trunk/framework/OSMF/org/osmf/containers/MediaContainer.as
        osmf/trunk/framework/OSMF/org/osmf/layout/LayoutTargetSprite.as

  • Inserting HTML comments from the Insert menu

    So I understand that the insert menu has been changed in CS6 and then again in CC  (Dreamweaver 12.2). 
    http://helpx.adobe.com/dreamweaver/using/changes-insert-options-creative-cloud.html
    I am using DW CC.   I want to insert HTML comments quickly in a bunch of different locations in my page code.  Is there a way to do that?
    If this must now be done by hand I would like to know why.  The reason for the changes is explained as removing support for deprecated elements, but HTML comments are not deprecated in HTML 5.
    http://www.w3.org/html/wg/drafts/html/master/syntax.html#comments

    There is another option. Select the block of the code and choose the comment option as per your requirement. See image below.

  • Removing HTML Comments from an entire website

    Hi, I wonder if there is a simpler way to remove 'HTML Comments' from an entire website without having to use the regular expression ' <!-- [\w\W]*?--> ' using Find & Replace in DW 8?  Many thanks, Simon

    Thanks Murray, - I guess I was hoping for a 'button' in DW 8 that offered this function without writing a simple regular expression that works just fine. What laziness!  My reasons for removing my HTML comments also puts me in a bad light!!!  Best wishes, Simon

  • HT201303 I have changed my country from India to Oman. Now when I try to download some application, the message "you should shift to Omani store for purchase". In itune it shows, you can only purchase from Omani Store". How to correct this contradiction.

    Hi
    I have changed my country from India to Oman. Now when i try to update or download anyu application, the message," Your account is not valid for use in Indian Store. You must switch to the Omani Store before purchaseing" comes.
    In Itune account details, the country is shown as Oman and payment details are also OK thru  Oman based bank's Visa card.
    Now the problem is that I cannot update any of my applications or download any new applications.
    Could you please help.
    Regards,
    Karingada

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • How to REMOVE [b] H1 Tag[/b] from HTML without changing other Tags?

    Hi there!
    I'm searching for a method to remove Tags from HTML (using HTMLEditorKit, HTMLDocument ...).
    My current code is as follows:
    // first get the whole paragraph
       int iCaretPos = tpMyTextPane.getCaretPosition();
       Object oAttrib;
       HTMLDocument.BlockElement oElem = (HTMLDocument.BlockElement)oMyDocument.getParagraphElement(iCaretPos);
       AttributeSet oAttribs;
       SimpleAttributeSet oNewAttribs;
       int iParaStart = oElem.getStartOffset();
       int iParaEnd = oElem.getEndOffset();
       tpMyTextPane.select(iParaStart, iParaEnd);
       // the following only fetches the Tags that are valid for the whole paragraph!!!!!
       oAttribs = tpMyTextPane.getCharacterAttributes();
       oNewAttribs = new SimpleAttributeSet(oAttribs);
       if(iParaEnd - iParaStart > 0)
          // now analyse the attributes (remove all paragraph-tags)
          for(int iIndex = 0; iIndex < oaOurFormatTags.length; iIndex++)
             oNewAttribs.removeAttribute(oaOurFormatTags[iIndex]);
          if(iParaEnd - iParaStart > 0)
             oMyDocument.setCharacterAttributes(iParaStart, iParaEnd - iParaStart, oNewAttribs, true);
             tpMyTextPane.setCaretPosition(iCaretPos);
          tpMyTextPane.requestFocus();
          tpMyTextPane.repaint();
       }This code works for me, but all Tags of the selected paragraph are removed. That means:
    <P><H1>This is a <B>test</B> text<H2></P>
    will be converted to:
    <P>This is a test text</P>
    but I want it to be converted to:
    <P>This is a <B>test</B> text</P>
    Is there any other method to remove specific Tags (<H1>, ... <H6>) without touching other tags????

    In February I wrote a feature request about this. Today it has been accepted to the bug database. Please make your vote:
    http://developer.java.sun.com/developer/bugParade/bugs/4760082.html

  • Firefox crash when change language with ctrl + shift how to fix it

    I know that there is key combinations in firefox starting with ctrl + shift. I wonder how to disable this combinations instead of language change

    It would be better to disable the Ctrl+Shift combination to rotate the installed languages and instead assign the specific key sequence (Alt/Ctrl+Shift+number) to select each keyboard layout to avoid such issues.

Maybe you are looking for