Closed erier closed 9 years ago
problem with comments still exists
before
after
before
after
Hi, I've optimized this formater, it will keep the content format in comments, so the code like this and this are both ok.
In order to adapt to more usage scenarios, it will add new line break between comment blocks, so the code like this
/*** Components ***/
/** Content Objects **/
/* form */
will format to:
/*** Components ***/
/** Content Objects **/
/* form */
But the code like this
/********************/
/* HERE's A SAMPLE */
/********************/
will be also formatting to:
/********************/
/* HERE's A SAMPLE */
/********************/
Hope I can meet your needs.
First, excellent plugin! I use it all the time.
I came across a bit of an issue today, however.
Whenever there are comments like this:
and CSS Format is run, it comes out like this:
As you can see by the end of this output
/******************** /
, this is not good for the CSS that follows the comment as the comment hasn't been closed.I've gone ahead and taken out all instances of
/********************/
in my work to avoid the issue, but others may miss this and not be so lucky.Before Formatting After Formatting
Cheers -