How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags [duplicate]

This question already has answers here: Change bullets color of an HTML list without using span (14 answers) Closed 6 years ago. Imagine a simple unsorted list with some <li> items. Now, I have defined the bullets to be square shaped via list-style:square; However, if I set the color of the <li> items with color: … Read more

How to set the text color of TextView in code?

In XML, we can set a text color by the textColor attribute, like android:textColor=”#FF0000″. But how do I change it by coding? I tried something like: holder.text.setTextColor(R.color.Red); Where holder is just a class and text is of type TextView. Red is an RGB value (#FF0000) set in strings. But it shows a different color rather … Read more

Colorized grep — viewing the entire file with highlighted matches

I find grep‘s –color=always flag to be tremendously useful. However, grep only prints lines with matches (unless you ask for context lines). Given that each line it prints has a match, the highlighting doesn’t add as much capability as it could. I’d really like to cat a file and see the entire file with the … Read more