
(I converted it to an RTF because it then retains the tab markers, making it much easier to read.) If you’re interested in editing the HTML file, you can find it, and read some basic how-to instructions, in this hint on. If you’d like to add additional colors to the file, you can do that, too, but it’s best to start with an HTML file, as it’s much easier to edit. Currently browsers only support a small subset of CSS properties for ::selection pseudo-element like color, background-color and text-shadow. However you can override this setting with the CSS ::selection pseudo-element. By default, most of the browser highlights the selected text in blue background. Select the text to be modified, click the Styles drop-down menu, and select the desired background color from the list. Answer: Use the CSS ::selection pseudo-element.

Once created, you can apply your background color very easily. Repeat this process with any of the other background colors you’d like to use on a regular basis. I have poor knowledge about overriding properties. Is there any way I can change the selected texts color (and by chance, the blinking cursors color) PS.

After typing a name, click Add, and you’re done. When I select some of its text, the selection appears with blue color which is hardly distinguishable from non-selected text. This will make it easy to spot your background styles. This will display a small dialog box where you can name your style, and optionally include the font and/or the ruler as part of the style-don’t do this you just want the background color, so it won’t change the style of whatever text you apply it to.įor a name, I suggest using a command prefix, such as bg- or bkgnd-, followed by the color name. Select Format -> Font -> Styles from the menu, and click Add to Favorites. Scan through the lines until you find a background color you’d like to use, then select any of the colored text on that line.
