Recent

Author Topic: Coding Color  (Read 23432 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Coding Color
« Reply #15 on: April 18, 2017, 10:42:24 am »
I use Solarized Dark (in bright rooms I might switch to Solarized Light) - themes I created based on the official Solarized website reference color values. But mostly I use my own custom Pascal Dark theme (which I've been using for over a decade). My font is always "Raize" (a bitmapped font), but if I need to work with Unicode glyphs (hardly ever in code), then I'll temporarily switch to "DejaVu Sans Mono"

I can't code with a white background - it is just way to bright to stare at all day long.
« Last Edit: April 18, 2017, 10:47:57 am by Graeme »
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Thaddy

  • Hero Member
  • *****
  • Posts: 14159
  • Probably until I exterminate Putin.
Re: Coding Color
« Reply #16 on: April 18, 2017, 10:51:25 am »
I like the brown on that,but it would be better with a would stain, like mahogany. Or rosewood.
Specialize a type, not a var.

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Coding Color
« Reply #17 on: April 18, 2017, 11:14:03 am »
:-)  The only thought I have it was to choose something with even contrast across all the source code, and something I can stare at for 14 hours a day without inducing headaches.

Attached is another screenshot of the Pascal Dark, but this time showing other code elements like IFDEF's, numbers, strings etc. The IFDEF's might be a bit on the bright side, but luckily my code normally contains very little IFDEF's. The screenshot was from MSEide. See "pascal_dark_2.png".

Under Lazarus IDE I also have the current editor line in a different color (the background color of the Solarized Dark theme), and inactive code (eg: none active IFDEF's) is a dimmed color of the original. Okay, a picture speaks a thousand works, see "pascal_dark_3.png".
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Zoran

  • Hero Member
  • *****
  • Posts: 1824
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Coding Color
« Reply #18 on: April 18, 2017, 01:14:32 pm »

creaothceann

  • Full Member
  • ***
  • Posts: 117
Re: Coding Color
« Reply #19 on: April 18, 2017, 06:44:55 pm »

Thaddy

  • Hero Member
  • *****
  • Posts: 14159
  • Probably until I exterminate Putin.
Re: Coding Color
« Reply #20 on: April 18, 2017, 10:23:20 pm »
Hm
Code: Pascal  [Select][+][-]
  1. try
  2. ....// visible
  3. ignore
  4. ......
  5. end;
Pick a colour ( or color you Trump's)
« Last Edit: April 18, 2017, 10:26:02 pm by Thaddy »
Specialize a type, not a var.

creaothceann

  • Full Member
  • ***
  • Posts: 117
Re: Coding Color
« Reply #21 on: April 19, 2017, 08:41:03 pm »
?

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: Coding Color
« Reply #22 on: April 20, 2017, 11:27:03 am »
Yeah, I'm also lost by Thaddy's last post. :)
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Coding Color
« Reply #23 on: April 24, 2017, 08:40:05 pm »
Inspired by Solarized Dark my editor looks like this now:
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: Coding Color
« Reply #24 on: April 24, 2017, 10:39:39 pm »
@Pascal

Those lines reminds me of the CnWizards plugin for Delphi. How did you do it?

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

shobits1

  • Sr. Member
  • ****
  • Posts: 271
  • .
Re: Coding Color
« Reply #25 on: May 22, 2017, 11:46:15 pm »
@Pascal

Those lines reminds me of the CnWizards plugin for Delphi. How did you do it?

JD
I'm also interested to how do it?

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Coding Color
« Reply #26 on: May 23, 2017, 01:44:02 am »
The guide lines are available in Lazarus 1.8 (download the RC, or use svn).
You need to enable them in the options: Editor > Display > Markup and Matches: Outline

Thanks to Pascal who provided the patches.

Pascal

  • Hero Member
  • *****
  • Posts: 932
Re: Coding Color
« Reply #27 on: May 29, 2017, 04:19:52 pm »
I also adapted the colors in the outline markup for Solarized Dark. So they do not look the same as in trunk or 1.8 RC1.
In the furture there will be an extension to the editor options to make the colors customizable by the user.
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

RAW

  • Hero Member
  • *****
  • Posts: 868
Re: Coding Color
« Reply #28 on: August 03, 2017, 02:45:04 am »
I don't like a white coding background but I experienced problems with PDF-Readers when I use a black or green background color. Maybe it's a rendering problem of LIBRE OFFICE... Anyway to be sure that this cannot happen I decided to do a WhiteBackgroundCodingColor:

Really sweet...   :D
Windows 7 Pro (x64 Sp1) & Windows XP Pro (x86 Sp3).

apexcol

  • Jr. Member
  • **
  • Posts: 54
Re: Coding Color
« Reply #29 on: December 14, 2017, 10:57:08 pm »
I think user ought to have the possibility to change the solid pattern also, for instance, dotted would look better even for readability

 

TinyPortal © 2005-2018