Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2025, 05:41 PM   #1
wanderson
Enthusiast
wanderson began at the beginning.
 
wanderson's Avatar
 
Posts: 28
Karma: 10
Join Date: Jul 2017
Location: Austin TX USA
Device: Kindle Paperwhite Gen 11, Likebook Mars & TCL NxtPaper 11
Comment Rendering in Editor Window

Is there any simple way to optionally defeat the italicization of HTML comments in the Calibre editor window? HTML comments are too rarely seen, but are useful (especially in math-heavy epubs); they are typed in as, e.g.:

<!-- \left(\frac{1+e}{2}\right)^n -->

I like the colorization, but the Calibre editor's italicization effectively renders backslashes ("\") as vertical bars ("|"), e.g. the above comment looks something like the following in the editor (simulated here, as the slant in the editor is much more aggressive):

<!-- |left(|frac{1+e}{2}|right)^n -->

I find the vertical bars obfuscate comments containing LaTeX, FWIW. BTW, I use online LaTeX to MathML converters to render math for epubs. That way, ereaders which don't have JS-support can still see the equations.
wanderson is offline   Reply With Quote
Old 02-13-2025, 10:15 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,339
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can change all highlight styles in the editor settings, including for comments.
kovidgoyal is online now   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[suggestion] Improvement toolbars comment editor un_pogaz Calibre 0 12-05-2021 07:03 AM
Rendering/Layout problem on Viewer and Editor knstn Calibre 2 06-27-2018 12:21 PM
Spell Checker window on top of Editor window Calibre-Fan Editor 3 01-30-2016 11:48 AM
Calibre 2.42 - Bad rendering of images in the editor Sam Sahara Editor 2 11-02-2015 08:22 PM
Format Mark-up in comment metada window bigpallooka Calibre 8 11-07-2010 07:49 AM


All times are GMT -4. The time now is 05:59 AM.


MobileRead.com is a privately owned, operated and funded community.