Hello, is there an option that we can make comment on the code editor?

This topic contains 4 replies, has 2 voices, and was last updated by  Sebastian 4 months ago.

Author Posts

1101blueli

I write those css code all the time. But the comment will disappear when switching selector.

Like the one on line 44
https://ibb.co/2cLzgmt

Wondering is there a option we leave /*comment*/ on the editor?
Thanks


Sebastian

Hey,

The single selector editor has some limitations when it comes to comments. If comments are important, you need to add code via View > Full code editor > CSS.

Once version 7 is out, I will start work on CSS snippets, which can be added to the folders (like single selectors currently can). And they will integrate with the responsive tabs in the same way too.

Cheers,
Sebastian


1101blueli

Alright, I see!
Not really that important. Just curios.
Looking forward to the new version~

Thanks


1101blueli

Oh, I suddenly found that we can leave a comment within the bracket {}
https://ibb.co/JtVhHpK

Kind of a solution.


Sebastian

I just did a test, and MT stripped out the comments. So this may not be a workaround you can rely on.

When entering multiple selectors in the code editor, the comments should always stay for all selectors other than the first selector. Only the first selector syncs with the UI fields, the others don’t, and so the custom comment stays. I’m not sure why your body comment wasn’t stripped out. There must be some other factor at play, but just wanted to gives you a head up that it won’t always work.

Cheers,
Sebastian

You must login or register to reply to this topic.