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 03-02-2015, 01:57 PM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Colour coding CSS

Quote:
Originally Posted by EditorOne View Post
Another question, maybe for another thread?
What do the different colors mean in the Calibre CSS?
In general, everything before the colon is green; after the colon I get either green or orange. Does the different color suggest an error?
Another thread: Probably better! But in a nutshell: So far you are lucky! There exist at least another color: Indigo for Errors and Warnings (from my examples).

Error: position is a (correct) property, but the value ? doesn't exist.

Warning: -epub-ruby-position: over: -epub-ruby-position is an unknown property name (as the warning says).
over is a non-existent value. This is not explicitly named as a unknown property can have no value of course, either existing or not.

Demonstration!
Warning: -epub-ruby-position: left: left is an existing value, but the warning is the same than with non-existent value over.
Attached Thumbnails
Click image for larger version

Name:	Error.png
Views:	395
Size:	127.5 KB
ID:	135499   Click image for larger version

Name:	Warning: -epub-ruby-position: over.png
Views:	419
Size:	134.6 KB
ID:	135503   Click image for larger version

Name:	Warning: -epub-ruby-position: left.png
Views:	370
Size:	135.2 KB
ID:	135504  

Last edited by chaot; 03-02-2015 at 02:15 PM. Reason: addition
chaot is offline   Reply With Quote
Old 03-02-2015, 02:38 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by chaot View Post
Another thread: Probably better! But in a nutshell: So far you are lucky! There exist at least another color: Indigo for Errors and Warnings (from my examples).

Error: position is a (correct) property, but the value ? doesn't exist.

Warning: -epub-ruby-position: over: -epub-ruby-position is an unknown property name (as the warning says).
over is a non-existent value. This is not explicitly named as a unknown property can have no value of course, either existing or not.

Demonstration!
Warning: -epub-ruby-position: left: left is an existing value, but the warning is the same than with non-existent value over.
The person who asked that question received a satisfactory answer (the colors indicate different types, as in any other editor possessed of syntax highlighting) over two months ago.
eschwartz is offline   Reply With Quote
Advert
Old 03-03-2015, 05:11 AM   #3
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@eschwartz
My post can be understood as a complementary approach and practice-based. The period gone is irrelevant as long as the post as such is okay.

Your link points more toward the general use of colors for 'Syntax highlighting' rather than the specific one in calibre.

Last edited by chaot; 03-03-2015 at 05:14 AM.
chaot is offline   Reply With Quote
Old 03-03-2015, 09:04 AM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
By design -- you seem to be implying the colors have nothing to do with syntax and indicate errors instead, which is flat out wrong.
Either way, the time lapse is indeed relevant, since necroposting is an official no-no.
eschwartz is offline   Reply With Quote
Old 03-03-2015, 02:20 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,612
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaot View Post
Another thread: Probably better!
Moderator Notice
Done


BR
BetterRed is offline   Reply With Quote
Advert
Old 03-05-2015, 01:32 PM   #6
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
@eschwartz As far as I have understood now: Defined/undefined HTML elements, attributes, properties or values (or whatsoever) gets syntax highlightning in calibre. But a undefined ''xyz'' must not be wrong automatically and therefore to be removed.

Quote:
Originally Posted by kovidgoyal View Post
Just because a CSS property is unknown does not mean it should be removed. An unknown CSS property simply means that the CSS property was not defined in the CSS 2.1 spec.
Anyway, we shouldn't deepen this issue further. Currently I understand these matters very little. By the time I'm going to gain more insight so tolerance of the opponent is welcome.

Sun is hot, summer is hot. But therefore sun is not summer!
chaot is offline   Reply With Quote
Reply

Tags
css, syntax coloring


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding Errors vinny3777 Recipes 1 06-01-2014 04:29 PM
Kindle 8 coding Jamestoo Workshop 2 01-14-2012 11:34 AM
Overridng link colour with extra CSS cyruss Conversion 2 04-08-2011 07:58 AM
Seriously thoughtful Coding Help Requested poohbear_nc Lounge 10 08-24-2010 10:42 AM
python coding... alexxxm Sony Reader 8 01-31-2008 12:25 PM


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


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