CSS Comment Tags

Ok, I was given the suggestion of using comment tags in my
css code to make
it more readable. I did this by moving all my styles under
appropriate
comment sections, but then DW changed all my comment tags by
removing the
<!-- --> opening and closing tags which really messed
up my css file. What
am I doing wrong that DW would change the code like this?
My Code:
<!-- COMMENT -->
#divWrapper {
width: 100%;
DW Modified Code:
COMMENT
#divWrapper {
width: 100%;
Brandon
http://www.presentationsdirect.com

Thanks. Another user instructed me to use <!-- -->
which is why I went with
that. But the correct way (as you suggested) fixed my styles.
Thanks!
Brandon
"Ken Binney" <[email protected]> wrote
in message
news:eurnqj$5f8$[email protected]..
>A CSS comment begins with "/*", and ends with "*/".
Comments can appear
>before or within rule sets as well as across multiple
lines. They can also
>be used to comment out entire rules or individual
declarations.
>
>
> "Brandon" <[email protected]>
wrote in message
> news:eurn97$4pt$[email protected]..
>> Ok, I was given the suggestion of using comment tags
in my css code to
>> make it more readable. I did this by moving all my
styles under
>> appropriate comment sections, but then DW changed
all my comment tags by
>> removing the <!-- --> opening and closing tags
which really messed up my
>> css file. What am I doing wrong that DW would change
the code like this?
>>
>> My Code:
>>
>> <!-- COMMENT -->
>> #divWrapper {
>> width: 100%;
>> }
>>
>>
>> DW Modified Code:
>>
>> COMMENT
>> #divWrapper {
>> width: 100%;
>> }
>>
>> --
>> Brandon
>>
http://www.presentationsdirect.com
>>
>
>

Similar Messages

  • CSS Comment Tags in Menu Tab?

    Is there a way to add CSS comment tags to my FAVORITES menu
    tab? Whenever I want to add comments to an external CSS document, I
    have to manually type /*...*/. It would be great if there was a
    comment button for CSS, like there is for HTML, so I could just
    select the text I want to comment out, click a button, and it
    automatically wraps the CSS in comment tags.

    There is. It's on the Code toolbar.
    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
    ==================
    "shockbyte" <[email protected]> wrote in
    message
    news:gff1k2$q6p$[email protected]..
    > Is there a way to add CSS comment tags to my FAVORITES
    menu tab? Whenever
    > I
    > want to add comments to an external CSS document, I have
    to manually type
    > /*...*/. It would be great if there was a comment button
    for CSS, like
    > there is
    > for HTML, so I could just select the text I want to
    comment out, click a
    > button, and it automatically wraps the CSS in comment
    tags.
    >

  • Can you create a keyboard shortcut to insert a css comment (/*  */)in DW?

    hello DW knowers!
    When writing code i like to use shortcuts for inserting commands.
    For instance, to insert a html comment, i created a shortcut in the panel for creating shortcuts (you can do this finding in the shortcuts panel the 'insert' option and then find 'comment').
    however, i did not find a way to create this for a css comment (/*   */) and i find myself forced to use the coding toolbar to insert this.
    I would really like to find a way to avoid this. Ofcoarse i can still type it in manually, or use the css rules panel to temporarely  deactivate a rule, but selecting a piece of code and then typing a shortcut would be much easier.
    Otherwise a great idea for the next upgrade of DW?
    thanks for an answer, if there is a possibility
    jo-ann

    I use a Logitech G19 keyboard, which allows you to create one keypress shortcuts for virtually any keypress sequence. It has ten extra keys on the left side of the keyboard which you can program however you please (a total of 30 shortcuts). This particular keyboard is kind of expensive ($200) but there are other less expensive keyboards that offer similar capabilities. Think how many times a day you type <p> or how about <a href= . With a keyboard like this, you can do it in one keypress.

  • Firefox 4 seems to action on some html tags that are included within a html comment tag which it should not.

    Consider the following html code where I open a textarea and include a comment tag within the textarea. Within the comment tag (which Firefox 4 should ignore) I've included a close textarea tag. Firefox 4 (unlike FF3 and IE) closes the textarea.
    The following code is also available at
    http://www.cems.uwe.ac.uk/caa/ffbug/index.html
    We are about to start a textarea....<p>
    <pre><nowiki><textarea rows='20' cols='40'>
    Here is the textarea.
    Inside these comment blocks I'll put a close textarea tag which Firefox should ignore but does not.
    <p>
    <!--
    We are now inside comment blocks...
    <br>
    This code should be inside the text area.<br>
    </textarea>
    <br>
    and so should this code be <b>inside</b> the text area (but is not in Firefox 4).
    -->
    </textarea>
    <p></nowiki></pre>
    This code should be outside the textbox.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • CSS Comments in DW CS3

    rally like the new preset css configurations that DW3
    provides and the css comments are nice as well. However, they
    bloats the code and many of the comments are not necessary unless
    you are a beginner.
    Does anyone know if there is a setting somewhere that will
    generate the css without the comments?

    Use a find/replace to delete them:
    Find:
    \/\*[\s\S]*?\*\/
    Make sure regular expression is checked.
    Tom Muck
    co-author Dreamweaver MX 2004: The Complete Reference
    http://www.tom-muck.com/
    Cartweaver Development Team
    http://www.cartweaver.com
    Extending Knowledge Daily
    http://www.communitymx.com/
    "htown" <[email protected]> wrote in message
    news:f2iagd$okr$[email protected]..
    > rally like the new preset css configurations that DW3
    provides and the css
    > comments are nice as well. However, they bloats the code
    and many of the
    > comments are not necessary unless you are a beginner.
    >
    > Does anyone know if there is a setting somewhere that
    will generate the
    > css
    > without the comments?
    >

  • Remove CSS Comments in CSS layouts

    In Stephanie Rawls article on What's new in Dreamweaver CS5 CSS layouts she mentions David Powers free extension :Stored Query to Remove CSS Comments.  How do I find and download that extension?

    http://foundationphp.com/tools/css_comments.php
    "I loves me some Google"...

  • How to Edit Comment Tag in DW CS3?

    I would like to customize the HTML comment tag for my own
    preferences. I know how to edit the colors and font under
    Preferences, but I would like to change the whole tag and add some
    more spaces and dashes. How do I edit this in DW CS3?
    Thanks..

    That's invalid, I believe. You cannot have more than two
    dashes on either
    side, as I recall.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Macronutz" <[email protected]> wrote in
    message
    news:f63tkh$222$[email protected]..
    > For example, DW currently write the HTML comment tag as:
    <!--comment goes
    > here-->
    >
    > But I want to change it so that comments tags appear
    differently, with
    > more
    > dashes and spaces, for example:
    >
    > <!------------ comment goes here
    ------------------>
    >
    >

  • How to Map XML Summary comments/tags from OpenScript into OTM through Java

    Hi,
    I would like to know if there is a possibility of copying the XML Summary comments/tags of a test case method in Openscript as test action and expected results of a test case in OTM
    The goal/reason is have to all the test case steps/actions and expected results and the corresponding automation code at one place so that maintenance is easy.
    Something like a testcase method below from openscript
    <Summary>
    <testproperties>
    <testcaseTiltle =" Automation of Expense Bill ">
    </testcaseTitle>
    <testcaseId>
    </testcaseId>
    <testAction>
    Click Menu -> Main Menu -> Expense
    </test action>
    <expectedResult>
    Expense form should be opened successfully
    </expectedResult>
    <testAction>
    Enter the Expense Amount and Date
    Click Save
    </testAction>
    <expectedResult>
    Expense for a given date should be submitted successfully
    </expectedResult>
    </testproperties>
    </Summary>
    {{@TestCaseMethod}}
    public void submitExpense()
    ....... automation code......
    }

    Did you find a way?? I need to do the same thing!!

  • !-- comment tag not working correctly - specific to one file

    Today I started a new DW project. A couple hours into it, I notice that all my commented out information wasn't being distinguished in the code coloring. Is there some sort of a toggle that turns that off an on?
    I've explored the prefs but found nothing.
    Any help would be much appreciated.
    PflipX

    Have you got the closing tag in your comment?  the general format is like this:
    <!-- This is a comment -->
    Put the above code in your document that has a problem and see if it works.  Use this trick:
    Insert a comment at the insertion point
    Select Insert > Comment.In Code view, a comment tag is inserted and the insertion point is  placed in the middle of the tag. Type your comment.
    In Design view, the Comment dialog box appears. Enter the comment  and click OK.
    Good luck.

  • [Solved] Simple way to edit id3v2 comment tag in python?

    I'm working on a project right now that is going to read the id3v2 comment tag from an MP3 file, parse some things from it, and then append some text to the end.
    Right now I'm using id3v2 from extra to do this:
    comm = commands.getoutput( "id3info '%s' | grep '(Comments): ()'" % fileName )
    Then I use this to put it back:
    os.system( "id3tag -c \"%s\" '%s'" % (commNew, fileName) )
    I really don't want to rely on this package to insert this comment. I've been looking at eyeD3 and mutagen for a better way to do this, but I'm having trouble figuring it out.
    I know there has to be a more elegant solution out there. Any ideas?
    Last edited by ltpl4y3r (2009-04-05 05:00:52)

    Thanks Zariel, I had looked at mutagen before, but had never been able to edit the COMM tag properly. After toying with it and dissecting mid3v2. I was able to come up with the following:
    import mutagen.id3
    filename = 'File.mp3'
    id3 = mutagen.id3.ID3(filename)
    frame = mutagen.id3.COMM(encoding=3, lang='XXX', desc=u'', text=[u'Great comment!'])
    id3.add(frame)
    id3.save()
    Adding [Solved] tag...

  • Updating Comment Tag does not update file metadata

    Hi,
    If anyone has the answer to this question i'd really appreciate it. I've been through all my songs in ITunes 8 (8.0.0.35)and removed all the comments in the 'Comment' column. However when you view the details in Windows (right click on the file, select properties, then choose summary) the comments still exist.
    Note: updating the artist, album, title, genre etc seems to update ok.
    I've tried upating the ID3 tag version to version 2.4 on a couple of tracks and this didn't solve the problem.
    Thanks

    I'm using the same version (8.0.0.35) and I'm running into the same problem. I have the feeling that the comment tag is the only one with this problem.
    Before this version, I could change the comment in iTunes (and see it reflected in WinAmp/Windows Explorer) or change it in WinAmp (and iTunes would reflect the changes).
    Now this is not true anymore. *Is iTunes using a new version of IDv2 ?* Not supported by other apps ?
    This is a major problem for me. I just lost 100s of comments, and even if I put them back who do I know this won't happen again ?
    Anybody ?

  • COMMENT tag not compliant with HTML 4.01 Strict

    Hello all,
    I'm trying to make one of my JSP pages (or rather, the output that it generates) compliant with the W3C HTML 4.01 Strict standard. However, my applet tag:
    <jsp:plugin type="applet" code="reale/survey/SurveyApplet.class" codebase="/Survey/" jreversion="1.2" width="1000" height="350" >
                   <jsp:params>                     
                           <jsp:param name="campus" value = "<%= campus %>" />
                           <jsp:param name="dept" value = "<%= dept %>" />
                           <jsp:param name="username" value = "<%= username %>" />
                           <jsp:param name="email" value = "<%= email %>" />
                           <jsp:param name="role" value = "<%= role %>" />
                      </jsp:params>
                       <jsp:fallback>
                           Plugin tag OBJECT or EMBED not supported by browser.
                       </jsp:fallback>
              </jsp:plugin>...generates this:
              <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="1000" height="350" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
    <PARAM name="java_code" value="reale/survey/SurveyApplet.class">
    <PARAM name="java_codebase" value="/Survey/">
    <PARAM name="type" value="application/x-java-applet;version=1.2">
    <PARAM name="campus" value="Adirondack Community College">
    <PARAM name="dept" value="ARSYS;ALUMNI;FINANCE;FINAID;GENERAL;PAYROLL;STUDENT;FACWEB;STUWEB;">
    <PARAM name="username" value="bob">
    <PARAM name="email" value="bob">
    <PARAM name="role" value="Administrator">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.2" width="1000" height="350" pluginspage="http://java.sun.com/products/plugin/" java_code="reale/survey/SurveyApplet.class" java_codebase="/Survey/" campus="Adirondack Community College" dept="ARSYS;ALUMNI;FINANCE;FINAID;GENERAL;PAYROLL;STUDENT;FACWEB;STUWEB;" username="bob" email="bob" role="Administrator"/>
    <NOEMBED>
    </NOEMBED>
    </COMMENT>
    </OBJECT>When I run it through the W3C validator (http://validator.w3.org/), it comes up with "element 'COMMENT' undefined." From some brief research, there is indeed no COMMENT tag in existence. Is there any way in the settings to tell the Apache Tomcat server I'm using to NOT generate these troublesome tags? Or is there something in my JSP code I have to add/remove to do this?

    Of course. The solution was painfully obvious: don't use the JSP tags but use the generated HTML. Then cut out the COMMENT and UNEMBED tags. Duh. Sorry about that.

  • Getting MP3 comments tag to show in iTunes

    Hi
    It seems when writing an MP3 Comment tag that iTunes needs the language to be specified with the correct three character code, or else left unused.
    However Windows which I am also trying to support requires the language of the comment to be specified moreover the comment won't be visible
    unless the specified language matches with the language Windows  is running in. The solution for that is to define the language of the comment as xxx.
    That means a messy solution is needed of writing two comments frames. Why I am asking here is to find out if iTunes accepts any three character codes for unspecified languge and if it could support xxx so that developers would not have to choose whether to support Windows or iTunes.

    I can drag it to a playlist,
    If it gets added to this playlist, it is in iTunes library.
    Select it in iTunes, right click - Show in Finder to see where it is on your HD.
    If it is not in the location shown in iTunes prefs > Advanced. make sure *Copy files to iTunes media folder when adding to library* is ticked.
    Spotlight shows it residing in my Music Library,
    What do you mean you *Music library*? There is no folder named *Music library*.

  • Everytime I open a comment tag 'pop-up,' the Thumb-Nail section opens, very annoying.  Have tried everything I can think of.  Any ideas?  Thank you.

    Every time (ALMOST) I open a comment tag 'pop-up,' the Thumb-Nail section opens, very annoying.  Have tried everything I can think of.  Any ideas?  No other problems elsewhere, either in Adobe or Word or my entire computer for that matter.  Very strange glitch.  Ran several deep virus checks - nothing.  Booted and re-booted.  Entered different ways into Adobe, no help.  Thought about my keyboard (wireless of course) might be doing it, but in other web-sites and in WORD - no problems.
    I use WINDOWS 8.1.  Also doubled checked my up-date status.  Is there a chance that this is a continuing problem that is still being encountered from the last major Adobe up-date?  Use Adobe for years with never a problem until the latest up-date.  Parting thought, maybe just my batteries in my keyboard are getting low, or a really low threshold virus of some sort, no idea.  Any help would be greatly appreciated.
    Thank you!   Charlie

    these are the sites and the information that i followed and none of these things gave me a solution. i am still getting a second tab with every single window that opens. . . thank you for your help!
    https://support.mozilla.org/en-US/kb/stop-firefox-opening-multiple-tabs-when-it-starts
    https://support.mozilla.org/en-US/questions/959049
    https://support.mozilla.org/en-US/questions/959413
    https://support.mozilla.org/en-US/kb/firefox-repeatedly-opens-empty-tabs-or-windows

  • Export to Fixed_Layout EPUB: Paragraph Styles not exporting to CSS class tags

    Hi,
    As it says, my Paragraph Styles aren't exporting to CSS class tags with a Fixed Layout EPUB.
    ...But Object Styles are working ok.
    Seems to work ok when exporting to HTML or Reflowable EPUB... just not Fixed Layout.
    Any ideas?
    Cheers
    Forgot to say: Mac OSX 10.8(?) Adobe Indesign CC 2014

    Hi... it was 10.0.7
    Updated to 10.1 & wahoo - it works now.
    Will mark your answer correct as it prompted me to update.
    Cheers

Maybe you are looking for

  • (very urgent)Difference of amount in vendor account and vendor invoice.

    Dear all, we are facing a issue related with vendor account actually MIRO post for the amount is showing difference compare with vendor invoice, please consider this scenario:- we are having vendor bill/invoice for Rs 1110/- but in SAP amount is show

  • Payroll Costing / Accounting --- How to knock off payroll libility

    Hello Frendz I want to know, i have made setup of costing at link level according to the proper Cr & Dr. After the payroll run Costing summary shows Dr & Cr equal to each other e.g. Salary expense Account & Payroll Clearing Account. Now i want to mak

  • Help! MacBook Air Nvidia Graphics 256 uninstall failure to boot up! Help Please!

    Hello, I have a 2011 MacBook air with an Nvidia Graphics Geforce of some sortI was trying to install fallout 1 on the computer, but it said I need to uninstall the Nvidia 256 graphics updatethe thing did not turn on. Status bar on, then says panic on

  • Issue is wms related

    hi Here material is qm relavent when doing the GR then lt06--qa32  th material is post in the bin when we do another GR -LT06--QA32  the material is  placing in  different bin and the quant is same is there anybody  to answer  what is the process or

  • Having hard time with MUVO not being recognized by comput

    I was able to use my MUVO one time and put music on it. Any time after that it would not get recognized when in my USB port. I downloaded the firmware and I am getting this message: "The device is not connected to the USB port" Any ideas on how to ge