Is it possible to add reminders/notes in CSS Editor ?

  • Unknown's avatar

    I tried to find this answer before posting here, but did not have much luck. Basically, my CSS Stylesheet Editor page is getting complicated, and I would like to put notes that only I am able to see, just to remind myself what’s what.

    I did find this in the wordpress.org forum that references something called a “comment code” :
    http://codex.wordpress.org/Commenting_Code

    Not finding anything else that resembled what I was looking for, I tried it, placing this style of note before added/revised codes in my CSS:
    /* comment here about a style */

    However, each time I saved, it vanished, indicating (likely) that this is not correct.

    Can anyone out there direct me to a better/correct way to do this … if it’s even possible?
    I really appreciate your help.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    You can copy it out and put the notes in the saved plain text file, but no, you cannot put the notes in the stylesheet here. WordPress uses a thing called CSS tidy which strips and optimizes the CSS stylesheets here so they load faster and take up less storage space.

  • Unknown's avatar

    Ah, that makes sense; comments add too much extra and unnecessary info in the CSS. I think I will create a separate word file, just to better keep track of and organize my file. Thanks for the good advice.

  • Unknown's avatar

    Don’t use Word. It will mess up the code if you later want to copy and paste it into your CSS. Use a plain text file in Notepad, TextEdit, whatever, but do not use Word.

  • Unknown's avatar
  • Unknown's avatar

    I use Notepad ++ for programming related things. I also use it when I need to strip formatting out of a block of text. Free try cnet.com for a download.

  • Unknown's avatar

    Okay, and thanks for that tip. I definitely don’t want to create extra work for myself down the road. I will also check out Notepad; thanks very much for that recommendation.

    This forum has been so unbelievably helpful these past two weeks. I cannot say it enough.

  • Unknown's avatar

    You are welcome and thanks.

  • The topic ‘Is it possible to add reminders/notes in CSS Editor ?’ is closed to new replies.