Code Coloring

My network administrator informed me that he would like to
use all .htm file extensions on our site, and that he will program
the server to render PHP tags within the .htm files for our
web-apps.
However, for development work I would still like to apply the
PHP code-coloring within files that have .htm extension. Can I tell
Dreamweaver to do this?
Thanks!

What was old is new again!
Similar to the original poster, my IT area has set up the web server to process all .HTM files as if they were .ASP. Subsequently, I cannot view my HTM files as they would appear if they were "true" ASP files in Dreamweaver CS5. I applied the changes described in TechNote 16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
No matter which file with the HTM extension I open in Dreamweaver, I get this message:
I also need to terminate Dreamweaver using Windows XP's Task Manager. File > Close, the application close button, Ctrl+Q and Alt+F4 do not work.

Similar Messages

  • Adding code-coloring to file with nonstandard extension

    I have PHP files that end in .ctp, which are basically HTML templates with PHP mixed in (as part of the Cake PHP framework). I'd like them to be parsed for code coloring the same way that the PHP files are, but the text is all black. Is there a way that I can tell Dreamweaver to parse it for PHP code coloring? I have already added ".ctp" to the list of file types that open in Code View using DW's Preferences.
    This is CS4.
    Thanks!

    Nevermind - I figured it out from here, you just have to edit an XML file to include the new extension that should be treated as PHP:
    http://kb2.adobe.com/cps/164/tn_16410.html

  • Use PHP code coloring in HTML files

    In Dreamweaver CS3, what changes do I need to make to get PHP
    code coloring show up in .html files?

    robot88888888,
    First, copy this file from the app config folder:
    C:\Program Files\Adobe\Adobe Dreamweaver
    CS3\configuration\CodeColoring\PHP.xml
    To the user config folder:
    C:\Documents and Settings\[username]\Application
    Data\Adobe\Dreamweaver
    9\Configuration\CodeColoring\
    Then open PHP.xml in your favorite editor. You need to add
    HTML to all
    of the doctype lists Change every occurrence of this:
    doctypes="PHP_MySQL"
    to be:
    doctypes="PHP_MySQL,HTML"
    Save and close. If DW is running, close it. Now restart DW.
    HTH,
    Randy
    > In Dreamweaver CS3, what changes do I need to make to
    get PHP code coloring show up in .html files?

  • Code Coloring and Code Hints

    I no longer have code coloring or code hints working on
    Dreamweaver. I checked the preferences and everything is still set
    the same but whenever I open an existing document it will not give
    me the code coloring or code hints. I still get it when I open a
    new doc but nothing else. Any ideas on how to fix this?

    kms5038 wrote:
    > I no longer have code coloring or code hints working on
    Dreamweaver. I checked
    > the preferences and everything is still set the same but
    whenever I open an
    > existing document it will not give me the code coloring
    or code hints. I still
    > get it when I open a new doc but nothing else. Any ideas
    on how to fix this?
    It sounds like DW does not recognize the file type of your
    page. What is
    the file extension?
    Randy

  • Code coloring error in HTML5 templates

    Is it just me?
    In both HTML5 templates (two or three column), that one can select after select 'New' from the 'File' menu the code is all grayed out after the browser conditional:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">##HERE##</script>
    <![endif]--></head>
    <!-- This HTML comment is here for no other reason but to fix the code coloring in Dreamweaver -->
    Code coloring is fine up to my indicator ##HERE## above, after that all grayed out till next end HTML commnet '-->'.
    I can fix it, lamely, with the comment you see above, "<!-- This HTML...-->"
    If the line <script ...>...</script> is removed from in between the conditional tags everything is fine.
    Thanks for any help.

    Just put a blank html comment <!----> after<! [endif] ->, the problem will disappear, the color will appear
    example:
    <!--[ IF lt IE 9]>
    <scriptsrc="http://html5shiv.googlecode.com/svn/trunk/html5.js"> </ script>
    <! [endif] -> <!---->
    </ head>

  • Dreamweaver CS6 and Coldfusion 9 - Syntax Errors & Code Coloring

    I recently purchased Dreamweaver CS6. 
    Also, I'm running Coldfusion 9 on Windows 7, but that's probably irrelevant.
    The issue is that Dreamweaver keeps on marking my files with syntax errors, and the code coloring gets all messed up.
    For instance, such function would indicate an error due to the #var#:
    <cfoutput><script>functionXYZ(#var#);<script><cfoutput>
    But this would work just fine:
    <script>functionXYZ(<cfoutput>#var#<cfoutput>);<script>
    The issue is that I have entire pages wrapped in cfoutput, redoing everything would take months.
    Or this would break the code coloring for the entire select as such:
    <select <cfif test eq 'test'>class="test"</cfif> name="selectbox">
    While this breaks the code coloring for the closing cfif as such:
    <select class="<cfif test eq 'test'>test</cfif>" name="selectbox">
    I'm getting syntax errors on thousands of my files, I understand that I could rewrite the code slightly to remove some of the error indications, but these are not actual errors so I feel that there is no point of me spending months updating the code.
    Is there a patch that I can apply so that this would work without any of these issues?
    Can someone please help?

    Have you posted this question in the Cold Fusion Forums?
    http://forums.adobe.com/community/coldfusion
    I don't use CF myself and the few CF coders I know have long since moved to Eclipse/ColdFusion Builder. 
    Nancy O.

  • Make DW use JS code-coloring instead of PHP

    I have a Javascript file that has a .php extension because of
    some dynamic elements on the page. I also can't wrap the code in
    <script> tags because of the way it loads. So basically, I
    need to tell DW to use JS code coloring on this page instead of PHP
    (right now, everything except the PHP is black text). Any way to
    force it to associate the file with a specific file type, instead
    of basing it on the file extension?

    mattloaf1 wrote:
    > I have a Javascript file that has a .php extension
    because of some dynamic
    > elements on the page. I also can't wrap the code in
    <script> tags because of
    > the way it loads. So basically, I need to tell DW to use
    JS code coloring on
    > this page instead of PHP (right now, everything except
    the PHP is black text).
    > Any way to force it to associate the file with a
    specific file type, instead of
    > basing it on the file extension?
    You can "fake" the script tags and fool the code coloring
    scheme by adding to the top of the file:
    // <script>
    and to the bottom of the file:
    // </script>
    As the // are single line comments in JavaScript when the
    file is loaded by the browser it won't see the script tags, but the
    code coloring engine seems to be tricked and begins working on the
    JavaScript code that is not within the <?php ?> code blocks.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Code Coloring does not stick

    The changes I make in the Preferences section under Code Coloring do not always stick. I even tried replacing the Colors.xml file with someone else's theme. That does not come through. I replaced it both under my Configuration/Code Coloring folder  which appears under Applications as well as my User folder.
    I don't understand why some of the changes take and others not. Should there not be an easier way to do this??
    Any clues as to how I can make the new (external) Colors.xml stick would be appreciated.

    CS5. And I should say, the instructions given on the Adobe site  on how to swap out the colors.xml file indicate a folder that doesn't exist. There is no Preferences folder. It's Configurations.

  • Code Coloring, ASP/VBScript, & CS5

    My IT area has set up the web  server  to process all .HTM files as if they were .ASP. Subsequently, I  cannot  view my HTM files as they would appear if they were "true" ASP  files in  Dreamweaver CS5. I applied the changes described in TechNote  16410 to MMDocumentTypes.xml (removing the HTM extension from the winfileextension and macfileextension attirbutes of the HTML InternalType and adding the HTM extension to the winfileextension and macfileextension attirbutes of the ASP-VBScript InternalType). I moved HTM in Extensions.txt from the HTML Documents line to the Active Server Pages line and I removed the backup I had made of MMDocumentTypes.xml from the Adobe directory.
    Based on another posting in this forum regarding code coloring, I added <%@LANGUAGE="VBSCRIPT"%> to the first line of my HTM (ASP) file.
    No matter which file with the HTM extension I open in Dreamweaver, I get this message:
    When  this happens also I need to terminate Dreamweaver using Windows XP's  Task Manager.  File > Close, application "close" [X] button, Ctrl+Q  and Alt+F4 do not  work.

    As far as I know (could be wrong here), DW does not allow you to alter the behavior of htm(l) files. The technote is aimed at adding new file types that DW doesn't already recognize.

  • Code Coloring Bug: Ranges in DateFields

    Adding ranges to DateFields in an mxml file will cause the
    code coloring to stop working. Is this a known bug?
    Try a field like this:
    <mx:DateField id="dtNeeded" disabledRanges="{[{rangeEnd:
    new Date()}]}"
    selectedDate="{detailObject.dtNeeded}" editable="true"
    />

    andretannus wrote:
    > Your reply wasn?t unsatisfactory, just pointless. You
    just babble what I said
    > back to me.
    >
    > I say: I found a bug. It has a workaround witch is not
    good enough for me.
    > Please give the abode bug tracking tool.
    >
    > You replied: There is a bug. The bug can be fixed with a
    workaround (which I
    > not only had mentioned but also discarded as useless).
    >
    > I have already posted my "vote" for (or against) the
    problem, for whatever
    > that servers.
    >
    > Still waiting on that bug tracking tool.
    >
    > cheers, and sorry for the apparent rudeness...
    >
    > I asked for a bug tracking tool, you gave me a complaint
    thing that doesn?t
    > remotely come close to a bug tracking system... I posted
    whatever I had to
    > there, and there has yet been no reply from whoever...
    >
    > just that
    That "complaint thing" is the bug reporting tool, there is no
    bug
    tracking system, its the only way your going to be able to
    communicate
    with Adobe about the bug. There is no list of bugs, and you
    will never
    know for sure if/when it will be fixed. If your lucky you may
    get a reply.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Code Coloring - adding extensions

    Does anyone know how to make .inc files (or any extension)
    use the .php code coloring scheme (or any scheme) in Dreamweaver 9
    (CS3)? The tech note I found among these messages applies to
    Dreamweaver MX, but not all configuration files mentioned in the
    tech article are found in the DW9/CS3 configuration.

    theopan,
    OK, I think I understand the problem now. The
    MMDocumentTypes.xml file
    is no longer automatically copied from the Application
    Configuration
    folder to the User Configuration folder, so you need to
    manually copy it.
    Hope this helps,
    Randy
    > No, the folder renaming is not the issue, I have been
    looking in adobe. Have
    > scanned my entire harddrive, inlcuding hidden and system
    files and folders.
    > There is a note in the Configuration_ReadMe.htm that the
    extensionsdata folder
    > is only there for backwards compatibility. My issue is
    there is no
    > MMDocumentTypes.xml file anywhere, and although I have
    made changes to several
    > .txt and .xml files to include INC wherever PHP is
    found, using what seems
    > logical additions, INC files are not being displayed
    with colors. Whatever
    > functionality MMDocumentTypes.xml was performing must
    have been moved or
    > duplicated to another file. Any more help in this area
    would be appreciated.
    > It's probably something simple, but don't know where to
    go next.

  • ColdFusion Builder 3 Code Coloring Bug

    Hello CFBuilders,
    I encountered what I believe is a bug within CFBuilder 3 (standalone and Eclipse plugin) where code coloring breaks after you insert a comment in a function with named arguments.  To replicate the issue copy/paste the following code in CF Builder:
    <!--- Sample Bug: Code Coloring  --->
    <cfset myFunction(
          argument1 = "strawberries",
          argument2 = "bananas", <!--- these are my favorite --->
          argument3 = "blueberries",
          argument4 = "pineapples"
    ) />
    <cfset test = "test" />
    You should see argument3,argument4, and the closing bracket are colored incorrectly.  If you encounter the same issue and you'd like to see this fixed please feel free to vote for this bug here:
    Bug#3831825 - Code Coloring Breaks When Comments Used Within Function with Named Arguments
    It should be noted that Dreamweaver can handle this type of code coloring situation fine.

    They say they fixed this, but the release has been sitting in beta testing for AGES. They said this was fixed last month but they sure are taking their sweet time releasing anything through the update site.
    IT's an update site - FOR UPDATES; Ugh

  • Document type in Code Coloring  preference

    Edit, preference in Dreamweaver MX 2004, under code coloring
    category, I can't see the various document type in Machine A but I
    can see ASP JavaScript, PHP, Cold Fusion etc in Machine B, do
    anybody know why????Configuration problem???
    How do I get it back????Pls help

    It sounds like you may have some missing or corrupted
    Configuration
    files in the CodeColoring and DocumentType sub-folders.
    Start by disabling any extensions that you have installed.
    After that,
    the easiest solution is probably to uninstall/reinstall.
    HTH,
    Randy
    > Edit, preference in Dreamweaver MX 2004, under code
    coloring category, I can't
    > see the various document type in Machine A but I can see
    ASP JavaScript, PHP,
    > Cold Fusion etc in Machine B, do anybody know
    why????Configuration problem???

  • Code coloring gone

    The code coloring is suddenly gone in the code view. I
    haven't changed anything in the preferences, and when
    I check it everything is set up as it always has been. Not
    really that big of a deal, but after years of seeing
    it in different colors it's strange just to be black.
    Restarted Dreamweaver, re-booted etc. Hate to re-install
    Dreamweaver and set up all of my web sites again. If anyone
    has a quick easy solution I would appreciate it.
    Thanks

    Is this true for all file extensions in all sites? Which DW
    are you using
    and which OS?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "chipdustygerda" <[email protected]> wrote
    in message
    news:g9p61c$kll$[email protected]..
    > The code coloring is suddenly gone in the code view. I
    haven't changed
    > anything
    > in the preferences, and when
    > I check it everything is set up as it always has been.
    Not really that big
    > of
    > a deal, but after years of seeing
    > it in different colors it's strange just to be black.
    Restarted
    > Dreamweaver,
    > re-booted etc. Hate to re-install
    > Dreamweaver and set up all of my web sites again. If
    anyone has a quick
    > easy
    > solution I would appreciate it.
    >
    > Thanks
    >

  • Code Coloring - black background

    Has somebody Dreamweaver 8 configured to use black background
    in Code Editor? If so, please distribute the ColorCodings XML files
    somewhere.
    Thank you very much
    cs

    If you are comfortable manually editing Registry/Preferences
    and raw
    XML, then try this:
    1. Shutdown DW
    2. Edit Configuration/CodeColors/Colors.xml and do a global
    change of
    "#000000" (black) to "#FFFFFF" (white).
    Note: be sure to edit Colors.xml in your User (not
    Application)
    Configuration folder. This TechNote explains the difference:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16420
    3. (On Windows) Using regedit, go to:
    \\HKEY_CURRENT_USER\Software\Macromedia\Dreamweaver 8\Tag
    Colors
    Change all "#000000" (black) values to "#FFFFFF" (white)
    Change "Background Color" to "#000000"
    Close regedit
    4. Restart DW.
    You may need to tweak a few settings in Code Coloring editor,
    but that
    should get you most of the way there.
    Hope this helps,
    Randy
    > Has somebody Dreamweaver 8 configured to use black
    background in Code Editor? If so, please distribute the
    ColorCodings XML files somewhere.

Maybe you are looking for

  • Interesting Battery rehab Suggestion from a Genius Bar guy

    I have a 2003-vintage PB17 a friend gave me when he upgraded. I believe the battery is original, and it shows 87% health and 106 cycles--not bad for an old machine. Still it shuts down at between 60 and 70 percent. If I start to charge it, its level

  • Binding context attributes to be used in PDF  Report

    Hi I have the following requirement: Context: HeaderNode        EmployeeIDAtt        DataNode               EmployeeIDAtt               ChildName Than basically I want to display a table of the results in a PDF document. The PDF generates fine, but I

  • Best way to browse iBooks?

    Hi all, Just got our first iPad (and iPad 2) and are exited to browse books. However... seems the only way we've found to browse books is by author? I know you can search, but, for example, is there a way to browse "photography" and see covers etc. ?

  • Oracle 8i, left join with conditional

    Coming from the MySQL world, I'm trying to do a left join with a condition: select c.givenname,c.surname,c.userid,r.letternr from cand c,responses r where (c.userid=r.username(+)) and c.activeprofile=1 No problem whatsoever. If there is no correspond

  • Can i use mirroring (atv) with iPad mini?

    can i use mirroring (atv) with iPad mini?