How to change the background color for the line number column in eclipse? - eclipse

I am using Eclipse 3.6.1 classic and trying to tweak the color syntax to my desire. The one thing I haven't been able to change is the background color for the line number column. If this is not possible because Eclipse doesn't have an option for it, I will be satisfied even with a hack/plugin if any of you know of any.
Thanks.

There is not an explicit setting for changing the background color of the line number column (Eclipse Helios, SR2, Build id: 20110218-0911). However, there are work-arounds and here is one:
The line number background changes color according to any changes you make in the Text Editors "Background color" - so the two are the same. Between these two is the column holding the debugging breakpoints (not sure what that column is called) and it's background color is not affected when changing the general background.
I run Eclipse on Linux (Oracle's version) and access it with XMing X-server from a PC. Setting this background color to a very pale yellow makes the narrow column holding the debugging breakpoints standout - and that column is between the text and the line number column. So the effect is to make the boundaries of the line number column more clear.
The very pale yellow is #FCFFC8 = RGB 252,255,200 = HSV 63,22,100
Eclipse often behaves a little differently when I run it straight from my PC so this behavior may be one of those cases.
Hope this helps.

Go to Preferences -> General -> Editors -> Text Editors -> Appearance color options and you will see that you can set the color of the line numbers using Line number foreground option and you can set the background of the line numbers column using Background color option.

Related

Miscoloured lines in rule-based layer styling in QGIS

I'm styling a vector layer of roads and have noticed that a small subset of lines appear to be going 'rogue' and ignoring their line colour styling. They still obey the line stroke and width style however but insist on being yellow instead of the desired colour.
I've added a separate rule for one of them and it definitely 'catches' the correct line segment and restyles it in every way EXCEPT for the colour which stubbornly remains yellow.
Can anyone provide me with any clues as to what is going on here?
That line (or lines) are "selected" - You have one of the selection tools active and have clicked on the line. See the manual for more details, you need to click on the clear selection tool
to remove it.

checking how long are comments in a file

I just finished an assingment and according to the instructions I can't have a line of code or comment longer than 120 chars. is there a quick way to check that?
I'm using VSCODE on windows 10. I saw somewhere that I can make a verticle line in the editor to see if a row is too long but I can't find it now.
for example :
// return stack->size since stack->size holds the number of values that can be stored inside the array at a given time.
this comment is 119 chars so it is ok but anything bigger will cause me to lose points.
I know I can hold the last char in the sentence and see the 'col' number in VSCODE, I was hoping for something better.
thanks
"editor.rulers": [120]
Look at the Editor: Rulers setting:
Render vertical rulers after a certain number of monospace characters.
Use multiple values for multiple rulers. No rulers are drawn if array
is empty.
You can change its color or opacity like so (in your settings.json):
"workbench.colorCustomizations": {
"editorRuler.foreground": "#ff0000ff",
}
That changes the color to red, the last two hex digits are opacity. ff is 100% opaque. So you could try more transparent with #ff000080 for example. Color and transparency are the only two modifications you can make to rulers.

Eclipse how to change color of edited text

I can't figure out where in Eclipse I can make the edit change to show a different color on the left side for a line that has been edited/changed (before saving the file).
This are is right behind the line numbers...when I make a line edit this small rectangle behind the line number changes now to light gray and I want a different color!
Thanks...
If you enable line numbers the lines you did modify will be marked with a different color: right click on the margin at the left of the editor window and select "Show line numbers"

Trying to figure out how to force Aquamacs (or any windowed Emacs) to use the xterm 256-colors

This question is in regards to forcing emacs to use a 256 color xterm color scheme.
When you open emacs in a terminal that supports xterm-256, it defaults to the xterm-256 color scheme, where default emacs font face colors like 'Firebrick' turns into something the xterm color scheme can display, which in this case is 'Red', so on and so forth. I really like this. I do not like the default emacs colors in a non-terminal setting; I think they are too faded and washed out-- I much prefer the brightness of the terminal colors.
(In fact I find myself programming in the terminal most often simply because I vastly prefer the typeface and the colors-- but I'd like to start using Aquamacs more for various reasons.)
For the life of me, I cannot figure out how to force Emacs (or in my case, Aquamacs) to force itself to downgrade the default color scheme to the xterm 256 color scheme like it does in my terminal. There has to be an easier way than making a new, ridiculously detailed color theme, but beyond the "TERM= " command you can set in your bashrc file (which obviously Aquamacs doesn't care about or use) I can't find anything equivalent in Emacs/Aquamacs that tells it to adopt a 256 color range so that it does things like turns Firebrick into the closest 'available' color, in this case, red.
I've attached screenshots. The first is how I want it to look like. (jpeg ruins the cripsness/brightness of the colors, but you get the idea.)
Second shot here is the default 'washed out' colors in aquamacs. See how the comments are in Firebrick (correctly displayed), versus the bright red of the comments in the above pic.
Variable names show up as more yellow in the top pic, but as more 'brown' in the bottom. Strings in the above file show up as more 'light brown' whereas in the bottom, it's more a dark brown. You can see they are definitely the same color scheme-- it's just that the terminal doesn't know about some of the colors and so it converts them to their baser, brighter forms.
Anybody know how to force this in Aquamacs? I've spent far too many hours researching this. :-)
Thanks!
Nick

Different color of rectangles (even/odd row)

I know how to color the full section (Section Expert - Color - Use Modulo Formula) but I also want to color rectangles in a row different. Well I think best way to explain this is an image:
http://i40.tinypic.com/2jd4wl.png
I made the layout using rectangles (hope they're called so in the english version)
is there any way to solve this? Maybe a possibility to set the background color of a ractangle by a formula?
I don't believe that drawing objects, including the box and line, support conditional colors in CR2008. Unfortunately, they also don't support conditional suppression so you can't just stack the objects and selectively suppress them to get the colors you want, either.
Other fields DO support conditional backgrounds, though. So you should be able to do away with the boxes altogether and just use the display fields (whether DB fields, formulas, whatever) to color the report. If you JUST want the colored boxes with no data in it, you can be sneaky and insert a blank text field and conditionally color the background (Right click on field -> "Format Text" -> "Border" tab -> "Background" -> Enter a conditional formula that returns a color). Bam, you've now got yourself a conditionally-colored box/rectangle.