MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Editor (https://www.mobileread.com/forums/forumdisplay.php?f=262)
-   -   Smart Comment/Uncomment (https://www.mobileread.com/forums/showthread.php?t=272048)

Bertrand 03-16-2016 04:26 AM

Smart Comment/Uncomment
 
Not very important.
I noticed that in HTML files with embedded style sheet, when commenting css codes, the editor surrounds the selection with HTML comments. (I suppose the editor reacts depending on the file type ?)

While I'm at it : is there a way to customize how "Beautify" works in CSS files ?

Thanks.

kovidgoyal 03-16-2016 04:30 AM

Yes, smart comment does not try to detect <style> or <script> regions in html files. I just never bothered to get around to implementing that.

As for customizing beautify, no, short of running from source.

Bertrand 03-16-2016 05:07 AM

I understand.
Thanks Kovid.

eschwartz 03-16-2016 01:28 PM

Quote:

Originally Posted by kovidgoyal (Post 3281641)
As for customizing beautify, no, short of running from source.

Or making a plugin to provide your own (derived?) beautify function!

phossler 03-16-2016 06:06 PM

What is 'Smart Comment/Uncomment'?

I couldn't find it in the on-line help

Thanks

kovidgoyal 03-17-2016 02:10 AM

Hover your mouse over the smart comment button the one with /* on it.

phossler 03-17-2016 10:28 AM

Thanks, got it now

I didn't have it on my toolbar


All times are GMT -4. The time now is 09:38 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.