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>

Similar Messages

  • Error accessing file template file not found (error code 2)

    We have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
    When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
    I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
    When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
    Any help would be appreciated.
    Thanks

    We have 3 admins that work on the website so we use the Check In/ Check Out feature of DW. We all have DW CS6.
    When I update the template I have no problem (I work on a mac). However, if one of the other admins (Windows) tries he gets the following message: Error accessing file template file "C:\filepath\filename.dwt": file not found (error code 2).
    I looked at this thread: Re: Dreamweaver Template not updating pages error code 2? but the only solution offered there is to change the template tag from <!-- InstanceBegin... to <!-- TemplateBegin... If this is the solution, how do you do this?
    When I go to the url of the template http://www.christophorushouse.com.au/Templates/chrv-main-template.dwt it says it's been (re)moved or renamed, but then I have a feeling you can't view/access a template this way. All pages of the website feed of this template.
    Any help would be appreciated.
    Thanks

  • 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.

  • Background image displays locally in HTML5 template but not when published

    I have used an excellent HTML5 template which uses JavaScript to display background images. However while this file works locally it doesn't when published. The site structure is sound and I notice this happens with the source files I downloaded also so it's nothing I have done in my build which could have caused this.
    This is the link to my site, everything is fine except the background image not showing.
    http://www.khawkinsdesign.com
    Any ideas, as I say fine locally, not fine when published?
    Message was edited by: Kyle Hawkins

    Hi Kyle,
    I realise you posted your question a couple of days ago but it looks like your background image issue may now be fixed?
    In any case, your site has a few issues. Not sure who told you the template was HTML 5 but they might be yanking your chain. There is nothing HTML 5 about the code used and the DOCTYPE is from HTML 4. As such, some of the code you have used is throwing up errors - some related to the DOCTYPE and some where you haven't closed the tags:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.khawkinsdesign.com%2F&charset=%28detect +automatically%29&doctype=Inline&group=0
    <ul id="footer-nav">
    <li><a href="index.html">Home</a></li>
    <li><a href="portfolio.html">Portfolio</a></li>
    <li><a href="about.html">About</a></li> /*The closing tag is missing in your code */
    <li><a href="contact.html">Contact</a></li> /*The closing tag is missing in your code */
    </ul>
    It would be best to amend the errors but some might disappear when you add the HTML 5 DOCTYPE in to your code. Things like your lack of "type" on the sources is a required v4 attribute, but not in v5.
    <!DOCTYPE html>
    Have a read through this for more info - this is a great resource for everything HTML 5. http://diveintohtml5.info/
    Rik
    EDIT:// It seems that the DOCTYPE is the 5 version on all but the home page so you may only have one to correct. However, there are still no HTML 5 elements used to take advantage of the new DOCTYPE.

  • DW cs4 -  something changed - font code colors

    Hello
    [history ] I have been using DW CS 4 for 16 months. 
    [Question ] Sometime in last two months the font code colors changed and are mostly blue.  I would like the code to have the variety of colors that it once had which made reading code possible.   When I've checked my code preferences I don't see anything which has changed.
    About the same time I have been getting an error message (maybe a red herring to code color issue)
    "this page contains some SWF that may not work properly in the most recent versions of Internet Explorer.
    Dreamweaver cannot convert them to the new SWF markups. Please delete each of them and insert again."
    However pages from same site that don't have SWF error are not having homogenous code color.
    Elsewhere when I searched the error code someone suggested looking at extensions.  The only extension I remember specifically adding to dreamweaver in last few months is
    Adobe :   HTML5 hinting for CS3 & CS4
    Thanks,
    Casey
    [additional info]
    Windows Vista™ Home Premium (6.0, Build 6002) Service Pack 2 (6002.vistasp2_gdr.100608-0458)
               Language: English (Regional Setting: English)
    System Manufacturer: Dell Inc.
           System Model: Inspiron 1525                  
                   BIOS: Phoenix ROM BIOS PLUS Version 1.10 A16
              Processor: Intel(R) Core(TM)2 Duo CPU     T5750  @ 2.00GHz (2 CPUs), ~2.0GHz
                 Memory: 3062MB RAM
              Page File: 2057MB used, 4264MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 11

    @ Nancy  Thanks.  Generally yes.   Transitional xhtml 1.0.
    However  --- 
    DW cs4 code color still is off.
    It seems that a possible cause was not the swf issue (as I first asked about) but something with ASP coding.
    I say this because when I remove the asp comment at the start of a product page (examples below) .   Yet  I don't know asp or DW library well enough to conclusively say this is it or just a hack.  I'd prefer best practice option.
    'default to order tab or not
    or
    I edit it to a string
    'default to order tab or not' 
    then rest of page is colored perfectly.
    three  examples (bigger below) --- as it is DW CS4 not rendering code colors correctly... then #2 removing 'default to order tab or not   then #3
    Original -- 
    Modified option 1 --  removed  asp comment  (which I'd prefer to keep)
    modified option 2 (  asp commented  closed with  '  but this may not be best practice....  will check coding forum for that... for now I'm seeing if DW is messing up something it should be.... )

  • Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED

    Hi experts,
    I have a big issue in production server,
    the Queues are stuking in smq2 " command to tRFC/qRFC: execute LUW again"
    if i am reprocess or press F6 it is going manually.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>400</SAP:P1>
      <SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><html><head><title>Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://xidist:8000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP NetWeaver Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://xidist:8000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://xidist:8000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2><b>404 Resource not found</b></H2><br>Partner not reached<br><br><hr> <table border="0"> <tr><td>Error:</td><td>-20</td></tr> <tr><td>Version:</td><td>7000</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Wed May 14 15:50:24 2014 </td></tr> <tr><td>Module:</td><td>icxxconn.c</td></tr> <tr><td>Line:</td><td>2341</td></tr> <tr><td>Server:</td><td>xidist_GXI_00</td></tr> <tr><td>Error Tag:</td><td>{004654a1}</td></tr> <tr><td>Detail:</td><td>Connection request from (110/28816/0) to host: xidist, service: 50000 failed (NIESERV_USED) EX-T110, U28816, 001 PIAFUSER, 10.1.57.50, 15:50:24, M0, W1, , 1/0</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2009, SAP AG</a></FONT> </td></tr></table> </body></html></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Regards,
    Kiran polani

    Dear Sriram Ramani,
    in ths case some scenarios are working good. proxy to soap, idoc to soap and jdbc to proxy, proxy to jdbc all are working with out error.
    but my problem is in Soap to RFC case..
    for all RFC communication channels are working but some time it is throwing RFC_COMMUNICATION_ERROR and messages are stucks in smq2 with retry.
    when i check with retry error with in sxmb_moni log showing ICM_HTTP_CONNECTION_FAILED with error code 400.
    not for all signals for few signals for some time..
    Why it is happening i can't understand.
    in repository it is saying Repsitory object hmi failed and address already in use.
    is there any problem with loading IR objects.
    Please suggest me good suggestion for this type of issue what can do for this to resolve.
    Regards,
    Kiran Polani

  • 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

  • Javascript error from DW Template

    I got the javascript code below from a css template in
    Dreamweaver. It's the code to control which submenu links are
    displaying in a horizontal menu bar. I'm getting at Object Required
    error from the line in bold.
    //menu constructor
    function menu(allitems,thisitem,startstate){
    callname= "gl"+thisitem;
    divname="subglobal"+thisitem;
    this.numberofmenuitems = allitems;
    this.caller = document.getElementById(callname);
    this.thediv = document.getElementById(divname);
    this.thediv.style.visibility = startstate;

    First thing - there is no *bold* for those who are reading
    your post from
    the NNTP side. Please don't use text formatting options (or
    really, ANY of
    the options) from the webforum as they usually fail for the
    NNTP readers.
    Since most of the answers come from the NNTP group, it's not
    a good idea to
    confuse them! 8)
    Second thing - it looks to me like you are using the HALO
    menus on this
    page. Those menus were removed from later releases of DW
    simply because
    they were awkward, goofy, and not best practice. Would there
    be a chance
    for you to replace them with something a bit more
    "contemporary" and less
    "quirky"?
    Finally, it is not really possible to diagnose your problem
    from this
    snippet of code - can you post a link to a page that displays
    the error
    message?
    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
    ==================
    "natg504" <[email protected]> wrote in
    message
    news:ftfoof$l6n$[email protected]..
    >I got the javascript code below from a css template in
    Dreamweaver. It's
    >the
    > code to control which submenu links are displaying in a
    horizontal menu
    > bar.
    > I'm getting at Object Required error from the line in
    bold.
    >
    > //menu constructor
    > function menu(allitems,thisitem,startstate){
    > callname= "gl"+thisitem;
    > divname="subglobal"+thisitem;
    > this.numberofmenuitems = allitems;
    > this.caller = document.getElementById(callname);
    > this.thediv = document.getElementById(divname);
    >
    this.thediv.style.visibility = startstate;
    > }
    >
    >

  • Code Color Scheme

    Is there an easy way to change the code color scheme to a
    black background in Dreamweaver MX 2004?
    I would like to code in a color scheme much like gVim with
    the darkblue color scheme.

    Gryphon4200 wrote:
    > That doesn't work since there isn't a color scheme
    template there for color on
    > black background. I can change the background manually
    but then I would have to
    > change each individual highlighting color to suit the
    background. I was
    > wondering if there was a template, plugin, or anything
    that would do it
    > automaticly.
    >
    AFAIK, there is no template available. If having it on a
    black
    background is what you want, you'll need to make the changes
    manually.
    If you think that the ability to choose colour schemes would
    be a useful
    addition to Dreamweaver, file an enhancement request directly
    to the
    development team:
    www.macromedia.com/go/wish
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Error while uploading Template

    Error while uploading Template in Internet Procurement Catalog Administrator responsibility
    I downloaded "Item Price" and i had one item onto spread sheet and tried to upload in above responsibility.
    This is how header level is in the template and line level has item information.
    #ENCODING     Cp1252                                                  
    Language Section*     EN-US                                                  
    Catalog Section     Supplier*      Title                                             
         FEDERAL INDUSTRIES     Test Catalog     
    ***********When i looked into log file i see error message ********************
    [5/20/11 7:58:13 PM] <INFO> Session language altered to AMERICAN
    [5/20/11 7:58:13 PM] <INFO> Session territory altered to AMERICA
    [5/20/11 7:58:13 PM] <INFO> ********** Loader started **********
    [5/20/11 9:35:08 AM] <ERROR> USR:MSG:POM_CAT_MISS_LANG_SEC
    [5/20/11 9:35:08 AM] <ERROR> -> Missing Language Section.
    [5/20/11 9:35:08 AM] <INFO> *********************
    [5/20/11 9:35:08 AM] <ERROR> Failure Message is ::
    [5/20/11 9:35:08 AM] <ERROR> USR:MSG:POM_CAT_MISS_LANG_SEC
    [5/20/11 9:35:08 AM] <INFO> *********************
    [5/20/11 9:35:08 AM] <INFO> Job failed
    [5/20/11 9:35:08 AM] <INFO> ********** Loader stopped **********
    I already had language section in the template as shown above, not sure why it is giving error.
    could you please let me know how to troubleshoot
    Edited by: 855902 on May 20, 2011 5:02 PM

    Hi,
    We believe you are getting this error because of some kind of format issue in the flat file which you are loading..
    You can refer below URL:
    http://appswork.blogspot.com/2009/09/catalog-loader.html
    /S.P DASH

  • Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching.

    Hello all,
    I am using the IMAQ Match Pattern 4 to detect the rotation angle of a template image. However, it shows the error: "Error 1074395241: The template descriptor does not contain data required for rotation-invariant matching." What is the problem exactly? How to solve this? The details are explained below.
    My project is a little bit complicated. Part of the block diagram containing the IMAQ Match Pattern 4 is shown below:
    The source image is a series of frames of images read from an AVI video (I used a for loop to process the images frame by frame). The template image is a selected region of the first frame. So it means, the user selected the object of ineterst in the first frame of the video, and in each of the following frames, we need to find the matched object of interest & determine its rotation angle. When I run the block diagram shown above, it does not have any error. However, it shows the rotation angle as zero no matter what it "really" is. Therefore, I changed the block diagram by adding the parameters, shown below:
    But in this case, when I run it, it shows the error that I have indicated in the subject line.
    If you need more details about my project to identify the problem, please let me know.
    Thanks in advance.
    Solved!
    Go to Solution.

    -Please go through pattern matching example which comes along with labview fiirst
    Go to labview Help>>Find Examples and you can search for example.
    -You have create template with angle range and what type of pattern matching you want use.
    -For this you have to use IMAQ Learn Pattern before using IMAQ Match Pattern 4
    Refer :http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-0

    Hi all,
             I have found a error "Error Code :-5002 Error Message :Enter valid currency  , '51100000-01-001-01'" while adding the DELIVERY document.
    I have made a customer and assign then "EURO" currency and add delivery document then it prompts error.
    Could anyone solve this problem. is there any setting which i am missing..??
    Regards
    Sandesh

    HI Sandesh,
    Check Sap note :1252328
    and also check below thread of similar issue:
    Re: 'Invalid Currency' error when attempting to deliver order
    Hope this will solve your issue.
    Thanks,
    Neetu

  • Error code -22: Error while registering

    Hi Guys.
    I'm new to NW Mobile 7.1.
    I'm able to run developed applications and see data on physical devices (PDAs).
    I'm also able to deploy and run the same applications on the NWDS Client (Simulator) BUT SEE NO data, because It can't sync.
    My question is very simple: How can I set up NWDS Mobile Client (Simulator) so I can get data?
    When I get to the Device Information screen (NWDS Mobile Client Simulator),values for Device Name and Device Id are blank
    After a sync, the folowing messages appear on my console:
    Windows XP
    messageReceived in ContainerSyncEventListener: Connected to the server   Level: 1
    messageReceived in ContainerSyncEventListener: Sending logon data to server   Level: 1
    messageReceived in ContainerSyncEventListener: Waiting for response from server   Level: 1
    messageReceived in ContainerSyncEventListener: Receiving data from server   Level: 1
    messageReceived in ContainerSyncEventListener: Error code -22: Error while registering
    I know that it is a must to setup a Device Name with one that exists in DOE (then Device Id is assigned during registration with DOE). But how can I place a value on Device Name? Should I set it up? then, Is it by copying a .propierties file under a MI/Folder or something?
    I can't navigate my applications on the simulator so I need to deploy the files to a physical device every time I build, and this obviously takes more time than just running it on the simulator.
    In just a few words, it is driving me nuts.
    Thank you in advance,
    David.

    Hi,
    if you have used MI7.0 you expect: sync a device and it is registered. This does not work in Mi7.1
    In MI7.1 you need to create a device for a user first, before you are able to sync and get data.
    To do this, open the Mobile Administration Portal in MI7.1, go to Administration and create a device for your user. Once this is done, you need to Enable the device.
    If the device is enabled, in status INITIAL and has the correct user assigned, you can sync this device with the MI server.
    Hope this helps!
    Regards,
    Oliver

  • Ipad is not being recognized by Windows..I get a Code 43 error on any USB port I try. I have rebooted, restarted, blah blah til I am blue in the face.

    Ipad is not being recognized by Windows..I get a Code 43 error on any USB port I try. I have rebooted, restarted, blah blah til I am blue in the face. This is an Ipad not an Ipad2...I can't get this thing recognized by either my desktop or laptop. It used to work...not now.
    Any ideas?

    Did you already have a look at this article?
    iOS: Device recognized in iTunes for Mac OS X

  • Itouch 3rd gen not recognised in Windows vista but ok in itunes (code 10 error)

    Windows Vista pc running latest itunes. pc will recognise itouch 3rd gen in itunes but not in  explorer. device driver posts a code 10 error. checked for update driver, response in latest driver installed (digital camera). Need help to be able to download photos in itouch.

    Thanks IIIaass, I have checked to see that the Vista pc hase the lastest driver (confirmed latest drivers, incl MTP USB drivers) and tried uninstalling and reinstalling itunes no luck.
    I am having the same problem on another computer running windows 7 - itunes ok but code 10 error as well. I have also tried uninstalling and reinstalling itunes on this pc as well - no luck.
    Any other suggestions?

Maybe you are looking for

  • Unable to collect form in PDF form

    Hello, I have created a fillable form using Live Cycle Designer. But when it comes to collecting the form data, after receiving the data in XML (as an email attachment), I am unable to open it as PDF. I have tried changing the default program to open

  • Open a new window (new display) in Java ME - how?

    I have now done a log in screen where the user has to type a server and a port to connect to. When the user press the Connect button I want a new "window" with a TextBox to be displayed. The new "window" is actually a new class which contains its own

  • Error: Bind Variable Does not Exist

    Hello, I am getting a bind error, Although I have only one bind variable, the debug output shows three bind parameters exist. Please let me know why this happens ? 04/08/11 17:02:50 [5341] SELECT Property.PID, Property.CID, Property.REO, Property.MLS

  • Gmail not listed under default programs how do I select it?

    Trying to set gmail as default for email when clicking on a "reply to" address. It is not listed under default programs. How do I add it or what can I do to make gmail or any other non-microsoft program the default?

  • Way to erase all data without restore?

    I just got off the phone with apple and they tolf me to take the phone to verizon for exchange due to wifi issues. I don't really want to go through the whole restore process plus Verizon may not like it restored in order to check it out. If I use er