Proposal to change notepad++ styling for numbers

188 views
Skip to first unread message

Gerard

unread,
Sep 11, 2013, 9:22:59 AM9/11/13
to golan...@googlegroups.com

With CL13401047 https://codereview.appspot.com/13401047/ some formatting issues in Notepad++ (npp) are solved.
(However npp itself has some issues with Go numbers. See attached Go file to check out which numbers are shown correctly in npp.) Btw, the Go file can also be used to check other editors formatting / styling as well.

The number colors are not very distinct from keywords. This proposal is to make all the values blue (fgColor="0000FF") for visibility, the same color as runes and strings right now. See picture.

npp.go

michael....@googlemail.com

unread,
Sep 12, 2013, 4:07:06 AM9/12/13
to golan...@googlegroups.com
Shameless plug of a zenburn-style syntax-highlighting I made:

chai2010

unread,
Sep 12, 2013, 4:18:48 AM9/12/13
to michael....@googlemail.com, golang-nuts
Though the number is not keywords, but the Anthony Starks's style looks good.

For the commnets color, i like npp clang's style.
And it is look well with Anthony Starks's style.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
chaishushan
http://my.oschina.net/chai2010

ajstarks

unread,
Sep 13, 2013, 10:03:16 PM9/13/13
to golan...@googlegroups.com, michael....@googlemail.com
Allow me to explain the rationale behind the original color scheme:

The black/white/gray/red combination is classic, harmonious, and familiar when looking at documents, I wanted to buck the trend against the overly colorful syntax coloring schemes, where too many elements are highlighted, and let the code speak for itself.  

The color scheme should enhance, not overwhelm, and reflect the information hierarchy of the code.  Thus, the clang (and other languages color scheme) is just too garish.  The proposed middle gray mutes the comments, just a bit, so that they serve their purpose: commentary.

In fact, I'm not convinced we even need to highlight numbers at all -- from their very shape we can distingush them from other characters.
Reply all
Reply to author
Forward
0 new messages