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

List:       kwrite-devel
Subject:    Re: Default Styles
From:       "Philipp A." <flying-sheep () web ! de>
Date:       2014-02-17 22:21:12
Message-ID: CAN8d9g=oFZ3iatbua=vXjpx624Z7b41CmfC_JHVR3U4WPF7CjQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


i'll comment a bit:

2014-02-17 22:43 GMT+01:00 Dominik Haumann <dhaumann@kde.org>:

> + dsExtension   (new, same as keyword, e.g. Qt, tr1, and other extensions)
> + dsControlFlow (new, or dsStructure, if, else, switch, continue)
> + dsVariable    (new, $bla in php or perl, or dsIdentifier?)
> ? dsSection     (new, e.g. [general] in ini file, or \section in LaTeX)
>

couldn't one use dsRegionMarker for it?


> Strings
> ? dsRawString   (new, '' in Perl, CoffeeScript and Bash, r'' or r"" in
> Python)
>

as said, many languages have this. definitely for it.

+ dsRegExp      (new, JavaScript and other languages heavily rely on it)
> ? dsRegExpOp    (new, RegExp semantics: ^\., [:space:], ...)
>

maybe we can use dsOther instead of dsRegex and add a dsOtherOp? that way
it could also be used for sth. like LaTeX math mode.

just an idea though.

Numbers
> + dsOperator    (new, for +-*/::<> etc..., lots of languages define this)
> ? dsConstant    (new, if needed? maybe M_PI or similar things? not sure...)
>

also not sure. the coffee script highlighting displays
TEXT_WITH_UNDERSCORES differently.

Misc
> ? dsLink        (new, url, path)
> ? dsDeprecated  (new: maybe for deprecated stuff?)
>

hmm, maybe. seems a bit far-fetched ;) (for real: no preference for or
against)

? dsReference: Markdown links, C pointers, LaTeX refs
>

maybe merge dsLink and dsReference?

Comments & Documentation
> + dsDescription (new, e.g. @brief in doxygen, or """ in Python?)
> + dsAnnotation  (new, e.g. @... in Java, @param in Doxygen)
> + dsCommentVar  (new, e.g. foobar in "@param foobar", etc...)
> ? dsExample     (new, e.g. @code ... @endcode, or dsVerbatim ? )
>

idk… why "example"?

Notifications
> ? dsPositive    (new, e.g. NOTE)
> ? dsInformation (new, e.g. TODO)
> ? dsWarning     (new, HACK, ###, FIXME)
>

maybe we just hardcode highlighting of those keywords inside dsComments?


> I'm currently not convinced of:
> ? dsInterface: C# interfaces, Scala mixins, declarations, protocols
>

yeah, ok, scratch it. dsDataType is enough for classes and interfaces

? dsBuiltin: Value keywords like Java's true, R's FALSE, Python's None,
>              JS' null, as well as Python's open, reversed, ..., and Go's
>              predeclared identifiers like new, print, ...
> ? dsBuiltinValue
> ? dsBuiltinFunction
>

i'm definitely for some combination of those, at least the one dsBuiltin.
many languages have a list of those in their highlightning files and style
them somehow.

? dsException: Often with Exception or Error in the name
>

i'm coming from python here. do other languages also have standard
exception hierarchies? if not, scratch that.

? dsSymbol
>

dunno. maybe too much?

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra">i'll comment a bit:<br></div><div \
class="gmail_extra"><br><div class="gmail_quote">2014-02-17 22:43 GMT+01:00 Dominik \
Haumann <span dir="ltr">&lt;<a href="mailto:dhaumann@kde.org" \
target="_blank">dhaumann@kde.org</a>&gt;</span>:<br> <blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> + dsExtension    (new, same as keyword, e.g. Qt, \
tr1, and other extensions)<br> + dsControlFlow (new, or dsStructure, if, else, \
switch, continue)<br> + dsVariable      (new, $bla in php or perl, or \
dsIdentifier?)<br> ? dsSection       (new, e.g. [general] in ini file, or \section in \
LaTeX)<br></blockquote><div>  </div><div>couldn't one use dsRegionMarker for \
it?<br></div><div>  </div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Strings<br>
? dsRawString    (new, &#39;&#39; in Perl, CoffeeScript and Bash, r&#39;&#39; or \
r&quot;&quot; in Python)<br></blockquote><div><br></div><div>as said, many languages \
have this. definitely for it.<br></div><div><br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

+ dsRegExp         (new, JavaScript and other languages heavily rely on it)<br>
? dsRegExpOp      (new, RegExp semantics: ^\., [:space:], \
...)<br></blockquote><div><br></div><div>maybe we can use dsOther instead of dsRegex \
and add a dsOtherOp? that way it could also be used for sth. like LaTeX math \
mode.<br> <br></div><div>just an idea though.<br></div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

Numbers<br>
+ dsOperator      (new, for +-*/::&lt;&gt; etc..., lots of languages define this)<br>
? dsConstant      (new, if needed? maybe M_PI or similar things? not \
sure...)<br></blockquote><div><br></div><div>also not sure. the coffee script \
highlighting displays TEXT_WITH_UNDERSCORES differently.<br></div><div><br> \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex"> Misc<br>
? dsLink            (new, url, path)<br>
? dsDeprecated   (new: maybe for deprecated \
stuff?)<br></blockquote><div><br></div><div>hmm, maybe. seems a bit far-fetched ;) \
(for real: no preference for or against)<br><br><blockquote style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"> ? \
dsReference: Markdown links, C pointers, LaTeX refs<br></blockquote><div>  \
</div></div><div>maybe merge dsLink and \
dsReference?<br></div><div><br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">


Comments &amp; Documentation<br>
+ dsDescription (new, e.g. @brief in doxygen, or &quot;&quot;&quot; in Python?)<br>
+ dsAnnotation   (new, e.g. @... in Java, @param in Doxygen)<br>
+ dsCommentVar   (new, e.g. foobar in &quot;@param foobar&quot;, etc...)<br>
? dsExample       (new, e.g. @code ... @endcode, or dsVerbatim ? \
)<br></blockquote><div><br></div><div>idk… why \
"example"?<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px \
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Notifications<br>
? dsPositive      (new, e.g. NOTE)<br>
? dsInformation (new, e.g. TODO)<br>
? dsWarning       (new, HACK, ###, FIXME)<br></blockquote><div><br></div><div>maybe \
we just hardcode highlighting of those keywords inside dsComments?<br></div><div>  \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
solid rgb(204,204,204);padding-left:1ex">


I&#39;m currently not convinced of:<br>
? dsInterface: C# interfaces, Scala mixins, declarations, \
protocols<br></blockquote><div><br></div><div>yeah, ok, scratch it. dsDataType is \
enough for classes and interfaces</div><div><br></div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">

? dsBuiltin: Value keywords like Java's true, R's FALSE, Python's None,<br>
                    JS' null, as well as Python's open, reversed, ..., and Go's<br>
                    predeclared identifiers like new, print, ...<br>
? dsBuiltinValue<br>
? dsBuiltinFunction<br></blockquote><div><br></div><div>i'm definitely for some \
combination of those, at least the one dsBuiltin. many languages have a list of those \
in their highlightning files and style them somehow.<br> \
</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> ? dsException: Often \
with Exception or Error in the name<br></blockquote><div><br></div><div>i'm coming \
from python here. do other languages also have standard exception hierarchies? if \
not, scratch that.<br></div><div><br> </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> ? \
dsSymbol<br></blockquote><div><br></div><div>dunno. maybe too \
much?<br></div></div></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