Jump to content
Mike Torrettinni

Customizing source editor

Recommended Posts

Is anybody customizing source editor?

 

I usually just change font, right now using Source code pro, but just realized I can make comments non-italic and solve the years long annoyance with cut of last char 😉

 

Any other suggestions on small changes that can improve the source editor?

 

Share this post


Link to post

I usually turn on "Show tab characters" (source options) and "BRIEF cursor shapes" (display). I also change "Right Margin" to 100.

 

And today I turned off Italic for comments, thanks for that hint.

Share this post


Link to post
Guest

@Mike Torrettinni you should be prohibited from asking more than 2 questions per week, we have life !:classic_biggrin: or you can bring soft drinks with each extra question.

Also i always change the background color of the comments and strings, this will make them pop.

Share this post


Link to post
4 minutes ago, Kas Ob. said:

Also i always change the background color of the comments and strings, this will make them pop.

Wanna share a combination you are using for a while?

I just started testing different colors and not sure what will stick, right now testing different comments colors... not found the right one, yet.

Share this post


Link to post
Guest

There is not one simple type, i change these background often and mostly based on the current source i handling, but here is what i am doing right now

image.thumb.png.cd9a9639ae3d5f6c4bdc91633c669743.png

 

when i finish with this it will have a lot more comments and less strings after refactoring, and most likely with red background it will work too,

image.thumb.png.7d004e855b1457b7dcef041076ef1d32.png

 

you choose what color suits you, like may be the red for the comments !

 

Share this post


Link to post

I would like the line breaks to be displayed. But that huge beast discourages me. Can it be changed?

1006189375_20210110165302.png.9dbe07ebb8712f3ce62d97c268a08a8e.png1691256163_20210110165938.thumb.png.678811c0d6c72734597723da9dadf9e8.png

Edited by Stano

Share this post


Link to post
23 minutes ago, Stano said:

I would like the line breaks to be displayed. But that huge beast discourages me. Can it be changed?

1006189375_20210110165302.png.9dbe07ebb8712f3ce62d97c268a08a8e.png1691256163_20210110165938.thumb.png.678811c0d6c72734597723da9dadf9e8.png

Check option Show line breaks:

 

image.thumb.png.a773144b8dbb3eaac919b4fb536f1ec3.png

Share this post


Link to post

The question was: Can it be changed? I mean size of the trailing character.

Edited by Stano

Share this post


Link to post
19 minutes ago, Stano said:

The question was: Can it be changed? I mean size of the trailing character.

Oh, no, I never tried that so I have no clue how to do it, if possible.

Share this post


Link to post
11 minutes ago, Mike Torrettinni said:

What editor is this?

Original Delphi Editor

Share this post


Link to post
15 hours ago, Stano said:

The question was: Can it be changed? I mean size of the trailing character.

I think that's a side effect of fixes for this problem:

 

https://stackoverflow.com/questions/25295980/delphi-2006-2010-error-cannot-create-file-c-users-admin-appdata-local-temp-ed

 

E.g. if you are using my dzeditorlineendsfix tool.

 

It prevents the font file used by the editor for the line ends to be loaded. Since that is only necessary for Delphi 2006 to 2010 you may not need it any more.

Share this post


Link to post

I think that's a side effect of fixes for this problem:
I kind of don't understand that. It does not matter.

 

E.g. if you are using my dzeditorlineendsfix tool.
I do not use it.

 

I did an experiment and tried different fonts. The trailing character is always the same. Each time at the full height of the line. The Courier New I use is probably the highest.
It's not something I really need. I close my problem.

Share this post


Link to post

  image.thumb.png.226e547ef89a2b494c8877fa0d02fb1d.png

SourceCode Pro - No italics

BG = Cream
Current line = light greenish
numbers = red 
comments = dark gray as I want the code to stand out and keep the comments low key - after all, they should only be necessary as a last effort read 😛

  • Thanks 1

Share this post


Link to post

It would be really cool to be able to quickly change color scheme, using keyboard shortcuts: Subtle comments when you want to focus on code, and stand-out comments when you want to read the comments quickly:

 

image.thumb.png.9b37ecd03c8c4aae44728d3c81fc6501.png

 

Share this post


Link to post
Guest
39 minutes ago, Mike Torrettinni said:

I see you both make sure strings stand out, why is that?

Localization or converting into constant...etc , but also strings is marker to see code, so when i am reading code i can collect images in brain on the layout code, or just strings make things more colorful. 🙂

 

Never thought about why i like them like that.

Share this post


Link to post
On 1/10/2021 at 12:54 PM, Mike Torrettinni said:

years long annoyance with cut of last char

what is that?

 

btw. turning off italic for the comments also reduces the line height by 1 or 2 pixels, cool

Share this post


Link to post
Just now, Attila Kovacs said:

what is that?

You never noticed how end of comment  line is cut off in italic?

See example of characters at the end:

d looks like o

f looks like t

image.png.95c270473fc726e84c166002a614762b.png

Share this post


Link to post

No, never, but I have to admit, the first thing I do after a Delphi install is to dump every fancy skinning (and other) bpl's from it.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×