[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Syntax colouring
From:       Alex Turbov <i.zaufi () gmail ! com>
Date:       2014-02-18 1:58:40
Message-ID: CANktQtu=+5VO=SCWcmXYA=4-G3LsgVHhhN0VJ=-MKsgOugUi=A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, Feb 18, 2014 at 1:40 AM, Sven Brauch <svenbrauch@googlemail.com>wrote:

> On Monday 17 February 2014 22:30:48 Dominik Haumann wrote:
> > Just as a side note: It's not the purpose of the highlighting to do full-
> > featured parsing. It's main purpose is to support the user when reading
> > code/whatever text.
> Yes, for the same reason I don't think the "constant" style is very useful,
> since you can't tell what's a constant and what's not in most languages.


yep, but as Dominic said we don't want to do any parsing -- it is not a
highlighters' primary task.
Now we just want to provide a sane set of categories (w/ their colors).

From other side almost all programming languages use one or another "coding
styles".
Personally, I like the way to name constants ALL_IN_UPPERCASE -- and I
don't need a
real parser to realize that this is a constant... I do that even in Python
which do not have
a constant concept at all...

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 18, \
2014 at 1:40 AM, Sven Brauch <span dir="ltr">&lt;<a \
href="mailto:svenbrauch@googlemail.com" \
target="_blank">svenbrauch@googlemail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="">On Monday 17 February 2014 22:30:48 Dominik \
Haumann wrote:<br> &gt; Just as a side note: It&#39;s not the purpose of the \
highlighting to do full-<br> &gt; featured parsing. It&#39;s main purpose is to \
support the user when reading<br> &gt; code/whatever text.<br>
</div>Yes, for the same reason I don&#39;t think the &quot;constant&quot; style is \
very useful,<br> since you can&#39;t tell what&#39;s a constant and what&#39;s not in \
most languages. </blockquote><div><br></div><div>yep, but as Dominic said we \
don&#39;t want to do any parsing -- it is not a highlighters&#39; primary task.<br> \
</div><div>Now we just want to provide a sane set of categories (w/ their colors). \
<br><br>From other side almost all programming languages use one or another \
&quot;coding styles&quot;. <br>Personally, I like the way to name constants \
ALL_IN_UPPERCASE -- and I don&#39;t need a <br> real parser to realize that this is a \
constant... I do that even in Python which do not have<br>a constant concept at \
all...<br></div><div><br> </div><br></div><br></div></div>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic