Vim Configure Line Number Coloring - configuration

I'm looking for a way to configure the color used for line numbering (as in: :set nu) in Vim. The default on most platforms seems to be yellow (which is also used for some highlighted tokens). I would like to color the line numbers a dim gray; somewhere in the vicinity of #555. I'm not picky though, any subdued color would be acceptable.

Try:
help hl-LineNr
I found this through:
help 'number'
which is the way to get help on the 'number' option, instead of the :number command.
To actually change the displayed colour:
:highlight LineNr ctermfg=grey
This would change the foreground colour for LineNr on a character terminal to grey. If you are using gVim, you can:
:highlight LineNr guifg=#050505

To change the line numbers permanently add the below to your .vimrc
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
Of course you change the ctermfg and guifg to whatever color you want.

In MacVim (with Vim 7.3 at it's core) I've found CursorLineNr to work:
hi CursorLineNr guifg=#050505

I didn't like the colors provided by the selected color scheme so I modified the color of the line numbers this way:
colorscheme trivial256 " for light background
hi LineNr term=bold cterm=bold ctermfg=2 guifg=Grey guibg=Grey90

Related

Oracle APEX changing the colour of display only item with PL/SQL query

I have a display only item in a static content which looks like this:
I want to change the whole background colour of the button/item instead of the text's colour.
My PL/SQL code looks like this for example for the first item:
SELECT case ACTUAL_SITUATION when 'Y' then '<span style="color:green">Yes</span>'
when 'N' then '<span style="color:red">No</span>' end as "ACTUAL_SITUATION "
FROM tableName
Is it possible to change it with PL/SQL? All I could do is change the span background colour and that was just a highlight on the text.
Assuming you have a "Display Only" field, set the "Source" to be a "SQL Query(return single value)" and be sure to set under "Security", "Escape special characters" to "No" to allow the HTML to flow through. Note that you want to use background-color not color in your style to set the background.
I tested it and it works.

How to have multiple colors on a jlabel when the text is constantly changing?

If this is the code to have multiple colors in html format in a jlabel
"<html><font color=red>Message</font> - <font color=navy>message</font></html>"
is there a way I can change the message? Im using this in a java app and when I try to change the message to the variable name it just gives errors.
Seem you read other topic about multiple color in a Label already.
So it is legel and work like
Lable.setText("<html>......</html>")
If you want it automatically change.
You have to add few different statements of Lable and make it run at background.

How to change display of "tab character" on PhpStorm

I want to know setting of changing display of "tab character" on PhpStorm.
PhpStorm displays tab character like "--->".
I want to change on "Colors & Fonts" of it. ( like "--->")
Doesn't it exist?
For anyone else not interested in doing a manual search (the search box in 10.0.3 didn't locate the option for me), it's under editor -> colors & fonts -> general -> text -> whitespaces.
The color of tab character was changed by changing Background color of 'Whitespaces'!
It (like "--->") was a Background not Foreground!
Thanks to LazyOne.

Code for creating dependent options in Volusion

I working on setting up a new site and Volusion doesn't appear to have any tools available to create dependent options. I will have products on the store that will have multiple option combinations (see example below)
Option 1: Color (Red, Blue,Green)
Based on the selection of option 1, I need the correct option 2 to appear.
Option 2: Personalization
If red is selected---Line 1: 5 characters Line 2: 10 characters
If blue is selected---Line 1: 5 characters
If green is selected-- Line 1: 8 characters Line 2: 20 characters
While I would LOVE for the personaization options to appear and link to the option 1, I would also be okay to just use the "Option Side Note" in Volution which can automatically populate a note of text. Does anyone know an HTML code I can use for the Color option so that the text notes would automatically change to let the customer know the lines and characters to include?
It sounds like you are looking for Volusion SmartMatch functionality, at least in part.
http://support.volusion.com/article/smart-match

How do I best display CheckBoxes in SQL Server Reporting Services?

One of the many quirks of Reporting Services we've run across is the complete and utter lack of a CheckBox control or even something remotely similar.
We have a form that should appear automatically filled out based on information pulled from a database. We have several bit datatype fields. Printing out "True" or "False" just looks silly, as this is supposed to look like a form that has been auto-filled out, so we want to have a series of checkboxes and labels that are either checked or unchecked.
We are running SSRS 2005 but I'm not aware of SSRS 2008 having added a CheckBox control. Even if it did, we'd need to have an alternative for the time being. The best we've found so far is:
use Wingdings
use images
use text boxes with borders and print a blank/space or a capital X
All three approaches require IIF expression shenanigans.
The Wingdings approach seemed to work acceptably, and was the most aesthetically pleasing except that for whatever reason it didn't always print correctly. More importantly, PDF exports, also for whatever reason, converted all fonts (generally) to Arial and so we got funky letters instead of the Windings dingbats.
Images, being a pixel-based raster, don't do so well when printed along side vector stuff like text. Unless handled carefully, they tend to stretch, pixelate, and do other unprofessional looking things.
While these methods do work (some with limitations as mentioned above) none of them are particularly elegant.
Are we missing something obvious? Not so obvious? Does someone at Microsoft have a good reason why such a control was not provided in SSRS 2000, let alone 2 versions and 8 years later? This can't be the first time this issue has come up...
I, along with others in my shop, have used images, toggling the hidden attribute based on the field value (true or false). We haven't had any problems with blurring or scaling, unless we tried to increase the scale of the image beyond 100% obviously.
Another option I've used is similar to the wingdings idea, but I just use a plain old "X". On our forms at least, it is not uncommon for someone to use an X in a box instead of a check mark, so it looks completely acceptable. Plus, you don't have to worry about strange characters when printing.
As for why Microsoft does not include a checkbox control, I can't answer that as I've been wondering the same thing myself for a long time now.
I just wanna share the idea on this blog. SSRS: How to Display Checkbox on Report
First create a textbox
Then change the font family to Wingdings
Insert an expression on the textbox and write this expressions.
=IIF(Fields!Active.Value,chr(254),"o")
Fields!Active.Value could be anything from your query that should return a boolean value 1 or 0.
Then click Preview and see the checkbox ;)
More styles can be selected on the blog that I shared above.
Here is an example of my output
What I have used to display a check box (or ballot box):
1- create textbox (that will become your check box)
2- change font to Arial Unicode MS
3- in the expression window use:
ChrW(&H2611) for a filled-in checkbox
ChrW(&H2610) for an empty checkbox
Besides the different methods already presented, as of SQL Server 2008 R2 there's a built-in control that can be used for checkbox-alike functionality: the Indicator!
Have a look here for details on how to use it: https://web.archive.org/web/20190916105459/http://blog.hoegaerden.be/2012/08/04/displaying-checkboxes-in-an-ssrs-report/
To be able to use a field of type bit, you'll have to cast it to int first. This can be done either in the dataset query or by adding a calculated field to the dataset.
If you want the NULLs to come up as yellow, then you'll need to build the expression that way so it takes that requirement into account as well.
Here's a possible expression for a calculated field:
=Switch(
IsNothing(Fields!YourBoolean.Value), 50,
Fields!YourBoolean.Value = False, 0,
Fields!YourBoolean.Value = True, 100)
Depending on the meaning of your fields - is False good or bad - you may need to swap the zero and 100.
Another way to do thisd is go to "Placeholder properties" of TextBox and check Html - Interpret HTML tag as styles
Then in the Value - Expression put this line of code for checked:
="<font face=""Wingdings 2"" color=""green"">" & Chr(81) &"</font>" & "some other text"
Or this code sample for unchecked:
="<font face=""Wingdings 2"" color=""red"">" & Chr(163) &"</font>" & "some other text"
This way you can have checkbox and text in the same textbox.
Later edit:
If you are having problem displaying Wingdings 2 on Azure, then use Wingdings.
Apparently it works.
="<font face=""Wingdings"" color=""green"">" & Chr(253) &"</font>" & "some other text"
Or this code sample for unchecked:
="<font face=""Wingdings"" color=""red"">" & Chr(168) &"</font>" & "some other text"
You can also use a string calculated field like "[X]" or "[ ]". It's less pretty than the textbox with border but you don't have to put a specific control for the value and you can fill table or matrix with this.
At least there is some solution for the checkbox. I'm still looking for full justification for my text (In fact I'm looking for another solution than SSRS know).
ACCESS 97 could make this kind of thing but not SQL SERVER 2012.
I think there is a bug with SSRS and embedding font characters above 128 (some thing todo with ANSI encoding). Basically you can use 1-128 fine, the rest show up as tall rectangular blocks.
I like NY's idea of the textbox with a border and an optional X - this sounds simple and effective.
This is building on Dragos Durlut's answer. I don't have a high enough reputation to comment but I can answer...
I needed a checkbox as part of text that is passed as a parameter. The parameter contains HTML and is used in a placeholder set up just like Dragos suggests: HTML - Interpret HTML tags as styles.
Instead of having to switch between the HTML and the strings, you can use the HTML Escape Codes (& + # + CharCode + ; --> ¨)
="<font face='Wingdings'>¨</font> Empty checkbox"
Since mine is a parameter, it just pass in the string:
<font face='Wingdings'>¨</font> Empty checkbox
If you need the checkbox selected, you would pass in either ý or þ instead:
<font face='Wingdings'>ý</font> filled with an x
<font face='Wingdings'>þ</font> filled with a checkmark