* * *

Author Topic: Coding Color  (Read 3323 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1363
    • 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: 3663
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.
Why do the Danish always try to fuck up any programming language?

Graeme

  • Hero Member
  • *****
  • Posts: 1363
    • 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: 1144
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Coding Color
« Reply #18 on: April 18, 2017, 01:14:32 pm »

creaothceann

  • New member
  • *
  • Posts: 42
Re: Coding Color
« Reply #19 on: April 18, 2017, 06:44:55 pm »

Thaddy

  • Hero Member
  • *****
  • Posts: 3663
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 »
Why do the Danish always try to fuck up any programming language?

creaothceann

  • New member
  • *
  • Posts: 42
Re: Coding Color
« Reply #21 on: April 19, 2017, 08:41:03 pm »
?

Graeme

  • Hero Member
  • *****
  • Posts: 1363
    • 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

  • Sr. Member
  • ****
  • Posts: 394
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 - fpc trunk 32bit - Windows 10 Pro x64

JD

  • Hero Member
  • *****
  • Posts: 1565
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 (10, 7) - Lazarus 1.6.4/FPC 3.0.2 (also Delphi occasionally)
Linux Mint Cinnamon  - Lazarus 1.4/FPC 2.6.4
Indy 10.6 series; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

shobits1

  • Sr. Member
  • ****
  • Posts: 275
  • .
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: 4251
    • 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

  • Sr. Member
  • ****
  • Posts: 394
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 - fpc trunk 32bit - Windows 10 Pro x64

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus