Open GoogleCodeExporter opened 9 years ago
Hello,
If somebody wants to write a lexer to support it it can be added.
Not that it matters I guess, but by looking at that website though I don't
really get
the point of the language. Why write a document that is almost exactly like css,
which then needs to be converted to css to be usable for anything. Sounds kind
of
like doing double work for the same outcome. Then again maybe I am just missing
something.
Original comment by CodyPrec...@gmail.com
on 2 Mar 2009 at 4:20
Well, i wouldn't mind writing the lexer. Any "how to" going around?
By the way, the idea about clevercss is that it let's you have smaller css
codes and
that it accepts variables inside it.
Let's say that you have a margin to a div, and that you have a padding to the
same
div. You could have a variable to make to margin proportional to the padding,
or you
could define base colors for the whole site.
Let's say we define a color for the theme. This color should be used as much as
possible to make the site have that 'look&feel':
theme_color = #ccc
so, in your clever code, this would happen a lot:
p:
color: $theme_color
.foot:
background-color: $theme_color
So, if you wanted to change the whole site theme color, you would have to change
theme_color variable alone.
This kind of technic is very helpful when developing with django, because the
MEDIA_URL variable is not avaiable for the templates. In that case, the
media_url
could be hard coded in a clever variable, making things easy. I don't use this
particular technic much, but for some people, it saves the day!
The convertion to css is kind of a problem. That's very noticeble. But easy to
solve.
A good aproach, that i use, is to create a python file that checks, once in a
while,
the .clever file for changes/updates, and generates the css code for it if
necessary.
Original comment by italo.maia@gmail.com
on 2 Mar 2009 at 6:34
Hello,
Editra uses Scintilla for its editing component. You can see the documentation
on
their website for how write a lexer. There are also some examples in Editra's
source
code. See Editra/src/syntax/issuelist.py for a simple example of one.
Cody
Original comment by CodyPrec...@gmail.com
on 2 Mar 2009 at 1:19
Original issue reported on code.google.com by
italo.maia@gmail.com
on 1 Mar 2009 at 8:47