Html comment around css

When you have the following code:
<style type="text/css">
<!--
.header {
font-weight: bold;
background: #979797;
-->
</style>
What does that mean? This header class will only take effect
in IE? Or, is does the <!-- and --> do something else?

Considering the movement towards HTML 5 that day is even less
likely to
come though you can use a mime type of application/xml with
XHTM. IE won't
like it but you *could* do it. <g>
Cheryl D Wise
http://starttoweb.com
"David Powers" <[email protected]> wrote in message
news:fm0bl8$7tu$[email protected]..
> Gary White wrote:
>> I rarely include html comments in <style> or
<script>
>> blocks, just to be on the safe side.
>
> I never include them myself, but I think Dreamweaver
still does when it
> inserts a script or style block automatically. Given the
glacial pace of
> change with (X)HTML, I wonder if I'll ever live to see
the day when
> ordinary web pages are served as XML.
>
> --
> David Powers, Adobe Community Expert
> Author, "The Essential Guide to Dreamweaver CS3"
(friends of ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/

Similar Messages

  • 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

  • HTML comment replication

    We recently upgraded from RH5 to RH7 and I am running RH
    version 7.00.145 on my machine.
    After upgrading, we found there were problems with em dashes
    and en dashes, in that they displayed as &emdash; or
    &endash in our output. We corrected this with a search and
    replace, replacing the erroneous code with RH's code (eg <symbol
    name="Em Dash"><robohelp>&#8212;</robohelp>).
    After this, however, we noticed that RH7 sometimes copied
    HTML comments from within the header and inserted them along with
    the code for the em dashes or en dashes. This produces the
    appearance of an extra space in the output.
    The only way we have found of fixing this is to move HTML
    comments from the header to the bottom of the page, then manually
    delete the extra comments around the en or em dash.
    This problem does not happen with every page that has en
    dashes or em dashes and there are no obvious differences between
    pages that are affected and those that are not.
    Has anyone else encountered similar problems? I would
    appreciate any advice on why this problem is occurring and any tips
    on how we can stop this.
    Thanks in advance, Tricia

    You need to install all the patches. There were many serious
    bugs fixed in 7.01 and 7.02. There is also a 7.03 out now, which
    wouldn't hurt to install either. I believe you'll need to install
    all three patches in order. You can find information about the
    patches and bugs on
    Peter Grainge's site.
    I don't think the projects you've opened with 7.00 will be
    fixed automatically by these patches, but any new projects, or ones
    you haven't yet upgraded won't show these issue. For the effected
    projects, if you haven't done anything apart from upgrade them, you
    could restart with backup copies, but that might not be a
    possibility if you've made a lot of changes.
    I'm sure Rick, Peter et al. will jump in with additional
    info, but you can at least have a look at what Peter has already
    put together.

  • HTML 5 and CSS 3 Support In Dreamweaver CS5

    I cannot find any information on this web site about whether and how Dreamweaver CS5 supports HTML 5 and CSS 3. There are lots of other fancy high-end whiz-bang technologies highlighted in CS5, but without support for HTML 5 and CSS 3, Adobe has left a great big hole in the middle of the new Dreamweaver. If I'm going to have to code these by hand, then there's little incentive for me to upgrade from CS4. Adobe may, by this oversight, intend to extend the useful life of Flash, but if this is so it's penny wise and pound foolish. There is much to like about Flash - and much to dislike about how it works on the user side. Leaving these problems unresolved hurts Flash, and leaving HTML 5 and CSS 3 support out of Dreamweaver hurts Dreamweaver. In other words, this is a lose-lose strategy.

    Hi Scott
    Sorry for the delay in replying, but I turn my internet connection off when working, otherwise I have found I tend to do more research than work.
    Media-Queries:
    I had viewed the video on the possible implementation of media-queries when it was first released, and in most respects the implementation is as I would expect, but it would be helpful if it was, (in a future development of the use) possible to show a list of 'common' smartphone/handheld devices, (makes/models) within the dreamweaver interface that would be usable with the screen size being used, (possibly as an import from the 'device central' device list as a drop-down list). My reason for asking for this feature is primarily as a time saving feature for the css layouts via media-queries as it would then show the targeted/usable devices in a list, and possibly alleviate the requirement of developing layouts that are not really required.
    Video:
    At the moment I am using the video feature as you have indicated where possible, and am doing so with the use of IECC's for IE as a fall-back for that browser. I have tried targeting versions if Firefox and Safari that support the video element by testing for it with JavaScript, but I have found this unreliable, possibly when the standard is finalized this may be the better method.
    SVG:
    I personally have decided to go with svg in preference to canvas. I have seen a few 'wow' factor demo's produced using canvas but as they use cross-compiled java to javascript code they are in reality showing nothing that has not been done before, (If we had 4Ghz processors with multi-core in 1999 similar trial graphics in vml would have worked just as good then, showing my age here!).
    My current work-flow with svg is - Inkscape - Modify the code by hand/preview in a browser - copy/past the code into dreamweaver.
    The current in-line implementation of svg's in the IE9 preview is where I see the main future of the svg implementations, as this makes using svg's for graphic elements and basic animations much more viable/easier for the average designer/developer, and lets not forget that as it is a vector it is ideal for resizeable background images in fluid/liquid layouts.
    I should say here, that I will for the foreseeable future use flash/swf's for more complex animations, as these are still much better quality than anything that can be achieved with svg or canvas.
    I would like to see the possibility of using Fireworks for the creation of svg's, and a work flow similar to that available between fireworks and dreamweaver at the moment.
    Cache manifest and database:
    As you have rightly grouped these two together, (and I cannot really envision a situation that they would not be used so) the situation with these is for me, (when trying to create the code for use) the necessity of 'remembering' what I must include in the cache and the transfer of the data for the database.
    Both are probably better explained with a typical scenario -
    A new research/development firm has developed the technology and parts to upgrade an autos internal combustion engine to an hydrogen powered engine. However the products list is specific to the motor manufacturers engine type, and to make matters worse the sales department also wishes an off-line version of the demos and parts list to be available to its sales team and customers, (o/k, maybe this is not a typical scenario, but it does demonstrate the usage).
    When developing the 'custom' html 5' enabled page I would require the cache manifest to include all necessary javascript/images/videos that would be required for the particular auto manufacturer to be available off-line, and compiling the list must be done at present by hand making it subject to possible errors.
    As for the database, (manufacturer specific) this must also be available off-line and updateable by the sales person and customer, as they are not always on-line and no hard-copys of material will be produced, (except when printed by the mechanic).
    My solution for me regarding the cache manifest would possibly be a dialogue in dreamweaver that would show all resources associated with the auto manufacturers model type used in the html site. I have used namespaces, (or some form of identifier) for general and model specific javascript, and a model identifying code for images and videos. The dialogue would then allow me to filter the resources required using the namespaces and identifier and include them in the list as required, possibly in much the same way that items are moved from a general list to a more specific list when creating the 'favourites' toolbar in dreamweaver.
    The database is on first appearance much simpler, as I would simply download the database using the motor_id as a filter, (yes Scott, you can see where I am going with this ) for those who cannot this would be wrong. You have correctly seen the problem with doing this, but I will explain for those who have not. The sales person and the customer would not see any of the images or videos that have references stored in the database, as these are just references and not the actual images/videos, yes one could use 'BLOB' for storing the items but this is not in my experience a reliable method. What is required is some form of method that would also download these items and place them into the required file position for off-line viewing, (which is what the cache manifest would do).
    So I would also require the possibility to add dynamically to the cache manifest from an sql database at the same time as the 'save for off-line' option is generated, (I have experimented with doing this in a similar manner that xml is created from an sql database).
    That's it for the html 5.
    Accessibility:
    For checking I use the firefox accessibility extension and total validator extension first, then the WAVE evaluation tool.
    But for Dreamweaver I would like to see the inclusion of the ARIA options as standard, especially when developing 'rich-internet-applications' particularly the aria-live and role options. I often find it interesting in discussions about html 5 where it is seen by many as a 'new' mark-up' language for the web, but rarely seen in the context of helping in accessibility when used correctly. Even the html 5 spec contains a section on using the new mark-up as part of accessibility and how the ARIA roles should be applied, (see - http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#annotation s-for-assistive-technology-products-%28aria%29).
    The inclusion of an extra live-view option in dreamweaver that render the page in 'screen reader' mode would also be a possible accessibility checking help. This could be done by simply turning off the background-images 'on-mass' and rendering any items as they would be seen by a screen reader. As most screen readers do now parse JavaScript and css, it would illustrate the problems of using such techniques as light-boxes without using the aria-live role to tell users that the light-box in now the focus of the page.
    For anyone who has stayed with this post, my sincere thanks, and any comments on the content would be welcome.
    Paula Z

  • HTML Comments in a JSP Document

    I am writing a JSP Document that has a number of comments. Some I want to be server-side such as version history and some I want to be client-side.
    Using a JSP page this is easily achieved using JSP comments <%-- JSP comment for server-side --%> and HTML Comments<!-- HTML comment client-side -->.
    Using XML syntax a number of things are apparent:
    1. There is no XML equivalent of a JSP comment (this has been well doc'd for a long time).
    2. In the Java EE tutorials the recommended alternative to a JSP coomment is a HTML comment.
    3. Using HTML comments in a JSP document the web container omits these in the page output - and so they are server-side only just like a JSP comment.
    Code Snippet:
    <template xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="1.2">
    <!-- this comment will not appear in the generated source on the client browser -->
    </template>
    <!-- JSP fragment for no caching policy -->
    So, my question is how do I generate a client-side comment in a JSP Document?
    Thanks
    Edited by: DJT on Mar 3, 2008 4:28 AM
    Edited by: DJT on Mar 3, 2008 4:30 AM

    I found this ....
    http://www.javaworld.com/javaworld/jw-07-2003/jw-0725-morejsp.html
    One significant disadvantage of JSP documents is that no XML-compliant version of JSP comments exists. A JSP document developer can use client-side (HTML-/XML-style) comments or embed Java comments in scriptlets, but there is no JSP document equivalent to <%-- -->. This is a disadvantage because the other two commenting styles JSP documents can use have their own drawbacks. You can see the client-side comments in the rendered page using the browser's View Source option. The Java comments in scriptlets require placing Java code directly in the JSP document.
    So try to embed the HTML comment inside scriptlet tags...
    <%
    <!-- HTML comment here -->
    %>

  • HTML layout and CSS handling in CQ5

    OK...so this may sound like a newbie question...because it is.  Kinda.
    I'm new to CQ5 but am an experienced web developer.  CQ5 doesn't appear to provide tools to layout of web pages (html tags, divs, css styling, ...).  I'm comfortable doing this by hand, but that seems rather old school in the days of Dreamweaver and such.
    What layout/design tools do you recommend for creating HTML and CSS pages for use in CQ5?  I have wireframes in-hand and ready to translate to HTML.
    Thanks!

    None of the enterprise content management systems that I've used, including CQ, provide WYSIWYG tools for building the layouts/templates of the site.
    I always build complete static versions of the designs/wireframes by hand entirely outside of CQ.  I prefer Textmate, but of course you can use whatever visual tool you prefer.  After the static HTML passes muster it then needs to be integrated, by hand, into CQ in the form of page and content components.  This is generally straightforward (depending on the design).
    CQ 5.5 does give you the Site Importer to help bring an existing page (or set of pages) into CQ which it then breaks up into the beginnings of a project, but in reality the developer will still need to break that up even further anyway.  Applying this integration by hand from the ground up will likely give you better control and awareness of what's going on in your project. Letting to much "magic" happen behind a slick wizard or WYSIWYG won't help you when something (inevitably) needs debugging and dissection.
    Having said all this, since the Adobe acquisition of CQ, I wouldn't be surprised if there was some kind of Dreamweaver plugin in the works for connecting to CQ!
    Good luck!

  • Html comment in JSP compiled and rendered in NW7.3?

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

    Hi,
    We are updateing from EP NW7.0 to NW7.3 and are facing a strange issue with html comment (<!-- -->) in JSP files. It seems as in 7.3 html comment is compiled and rendered but of course does not work.
    Is this correct or is it a bug?
    Thanks,
    Stefan

  • HTML comments not showing up in snippets in RH9?

    I want to be able to add some HTML comments sometimes when I enter content.
    For example, let's say I want a pair of HTML comments like so, with a place for text between them.
    <!-- begin info pulled from the v3 P & P manual -->
    and
    <!-- end info pulled  from the v3 P & P manual -->
    I created a snippet, entering the following using HTML view:
    <!-- begin info pulled  from the v3 P & P manual -->
    <p>Copy the text in here.</p>
    <!-- end info pulled  from the v3 P & P manual -->
    When I dragged the snippet onto the topic, though, the HTML comments (lines 1 and 3 in the example) were missing. That was the whole point of the snippet: To be able to copy in the HTML comment lines.
    I can open the snippet in HTML view, copy the lines, and paste them into the HTML view of the topic, of course, but I'm going to be leaving this project after it's over and don't want to have my successor pulling his/her head out wondering how to get this to work.
    Suggestions?

    No comment is going to appear in Design View, regardless of whether it is in a snippet, an ordinary topic or any page being edited in any HTML editor's design view. That's the whole point of comments, they are something that only appear in the HTML view.
    Maybe you were hoping the content of the snippet appeared in topics rather than just the reference?
    Anyway, I am sure Amebr's excellent alternative approach will work for you.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • JDev 10.1.3.3.0: How to include an HTML comment in a JSPX page

    When adding an HTML comment to a JSPX file, it automatically gets stripped out before being rendered to the browser.
    How do I write a comment to the browser for diagnostic purposes (to figure out where something gets rendered in the HTML).
    Thanks,
    Jonathan

    Try enclosing the HTML code in a <f:verbatim> tag.

  • KM Document iView - index.html and main.css not properly displayed

    Hello,
    as a test we have put two files in the /documents repository in KM :
    a) index.html
    <head>
    <link rel="stylesheet" type="text/css" href="./main.css"/>
    </head>
    <table width="92%" bgcolor="#FFFFFF">
      <tr align="left" valign="top">
        <td> </td>
        <td colspan="5"><table width="100%" border="0" cellpadding="5" cellspacing="0">
            <tr valign="middle">
              <td width="85" bgcolor="#C7D9E9"> <p><b>Top Links</b></p></td>
              <td width="125" class="document-list"><a href="impax.html">IMPAX Client
                </a> </td>
              <td width="125" class="document-list"><a href="talkstation.html">TalkStation</a></td>
              <td width="125" class="document-list"><a href="ris.html">RIS</a></td>
              <td width="125" class="document-list"><a href="connectivity.html">Connectivity
                Manager</a></td>
              <td width="125" class="document-list"><a href="impax.html">IMPAX Server</a></td>
            </tr>
          </table></td>
      </tr>
    </table>
    b) main.css
    A:visited
        color: #264560
    A:active
        color: #12212E
    A:hover
        color: #14623D
    A
        color: #336699
    table
        margin-top: 0px;
        margin-bottom: 0px;
    p
        color:#000000;
         font-family: Arial, Helvetica, sans-serif;
         margin-bottom: 0px;
        margin-top: 5px;
         font-size: 12px;
    .document-list
        background-color:#C7D9E9;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-color: #000000
        margin-bottom:3px;
    When going to Content Administration -> KM Content -> Documents and clicking the index.html file, the css file is taken into account, when i.e hovering over the IMPAX hyperlink, the path is http://<host>:<port>/irj/go/km/docs/documents/impax.html and the impax.html page is displayed when clicked.
    However, when creating a KM Document iView (with or without content filter) pointing to /documents/index.html and displaying the iView, the style sheet is ignored, and the same hyperlink as above now refers to http://<host>:<port>/irj/servlet/prt/portal/prtroot/impax.html, which is incorrect.
    -> How can this behaviour be explained?
    -> When creating an URL iView pointing to /irj/go/km/docs/Agfa_Knowledgebase/index.html , everything works as expected.
    Thanks for the help -

    Hi,
    You should correct the path to your css file in your index.html:
    href="/irj/go/km/docs/documents/main.css"
    Regards,
    Praveen Gudapati

  • Separate the html code and CSS code

    is there any setting where I can separate html Coden with CSS code?

    okej, so if I want to get them in separate files I need to do it b myself?
    If you want the content separate from the CSS, you would have to create the page's HTML and CSS yourself.  There is no way (other than a tedious manual process) to take an existing page with embedded CSS and then give DW a command to separate the CSS from the content.  Now - the extent of the effort to do this manually would depend on the complexity of the page.  Can you post a link to one of your pages - we can tell you how big a job this would be by examining the code.

  • How to make the auto generated java script not to have any html comments.

    Hello BEA Experts, As you know that auto generated javascript functions like getNetuiTagNames in Workshop are included with in the the HTML comment tags like <b><!--
    --!></b> its another thing they should be generated correctly as follows <b><!--
    //--!></b>, to hide it from browsers not supporting javascript.
    My question is there any way to stop generation of the HTML comment tags and just genrate the javascript with in teh script elements..
    Please let me know..
    Thanks in advance..
    -Bob F.

    Not sure if this is an application question or if you are trying to hook into Crystal Reports parameter UI? If the later then no option other than report design. If an application then I can move this to the Java Forums.
    If you are asking how to alter the parameters I suggest you remove the Java reference and post a new question so it's not confusing the issue.
    Please clarify?

  • Is it possible to export a muse page as and individual html with associated css?

    Is it possible to export a muse page as and individual html with associated css? 

    Yes, Muse has an Export as HTML feature.

  • How to suppress the html comment at start of output

    Hi,
    Does anyone know how to suppress the html comment that ITS inserts at the beginning of the response content.
    i.e.:
    <!--
    This page was created by the
    SAP Internet Transaction Server (ITS, Version 6100.1030.61.1891, Build 610.611891, Virtual Server SY1, WGate-AGate Host aauwsd00, WGate-Instance SY1)
    Template:       znc_xworktime/99/xml.html  -->
    This appears to be causing havoc with the applet's XML parser...
    org.jdom.input.JDOMParseException: Error on line 8: XML declaration may only begin entities.
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:468)
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:770)
         at com.alcatel.ontap.applets.timesheet.TimesheetTableLoader.run(TimesheetTableLoader.java:75)
    Caused by: org.xml.sax.SAXParseException: XML declaration may only begin entities.
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3364)
         at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:1140)
         at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1266)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:654)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
         ... 2 more

    Check out OSS Note No.747818
    You can use the ~no_its_header parameter to deactivate the default       
    header that is generated. As soon as this parameter contains any value,  
    header generation is suppressed. In ITS 6.20, you can set the parameter  
    with the AdminTool. You will find the relevant switch under              
    Security-General.                                                        
    If the ITS is integrated into the WebAS (SAP Netweaver 04 and higher),   
    you must maintain the parameter in the ICF service. Note that you have   
    to maintain the parameter individually for each service.                 
    Regards
    Raja

  • How can i change the html, jsp, js, css file using ../tools/filemanager.jsp

    Hallo Experts
    I want to know how to get the html, jsp, js, css file using .../strategy/tools/filemanager.jsp? If I search the file such as "commentslist", I'll find the file. It is shown in the table with three columns:
    Column with trash symbol for deletion, Path and Date. But I cannot to fetch the file and saved local to make the modifications.  Could you tell me how I can get the file? Is there another way to this?
    Thanks a lot and
    Best regards!
    Ping

    Wang,
    If you are looking at the commentslist file with the intention of customizing, you would use File Manager Path to be directed to the file's location:
    \usr\sap\<3 letter CE instance>\J00\j2ee\cluster\apps\sap.com\xappscpmsm~strategymanagement\servlet_jsp\strategy\root\pilotworks
    Any customization would have to be noted, since upgrades will overwrite customizations.
    Regards,
    Bob

Maybe you are looking for

  • Changing layout of ALV to excel and displaying the data there

    Dear All, My requirement is that I have to develop an ALV report, and also plot the graphs for the same. I need different types of graphs, so I have searched on SDN, and I found out a blg:- "Report with a Graph.. An Approach!" Here is what the person

  • NOKIA LUMIA 530 - TYPING / BATTERY /

    I am facing the following problems , Purchased from amazon and delivered 3 days back 1.WhatsApp typing giving error , after space I cant type , even Cant delete . Same typing problem in Facebook status also ....!! 2.Phone is getting unusually Hot wit

  • Two WRT54GL off HughesSatellite Modem: sudden problems!

    Greetings, I have been running - very successfully - a dual router setup off a HughesNet satellite system (standard plan, no static address) to operate distinct wireless networks in my business. All thanks to the generous, patient, and irreplaceable

  • Free upgrade to DW CS6?

    I ordered Dreamweaver cs5.5 and was supposed to get CS6 free when it came out. does anyone know how i get my CS6 upgrade?

  • What can we know from this?

    from below scripts what can we know excately?from below how can we estimate whats going wrong regarding with respective to sga target. please explain in detail thanks for information. NAME TYPE VALUE sga_target big integer 5G SQL> COLUMN size_for_est