how to change color of one word in a sentence of .ini file? - colors

I'm currently editing my custom date file which https://prnt.sc/TnWaC7alRjh2 you can see here. And I want to highlight the date itself away from other text, is it possible? How do I do that?
I have no idea what to do cause I'm completely green in stuff like this, but I guess I have to change something in this line?
FontColor=#Color255#=
Thank you.

Related

Cell with background text that disappears when clicked

I want to create cells which instruct the user on what need to be filled in that cell in the background and when you click to enter a something, this text vanishes. You normally see this you order something online. For example: Question: Date of Birth, answer field: DD/MM/YYYY in grey text. When you click on DD/MM/YYYY it dissappears and you can answer.
I would like to do this without using VBA, since I have no experience using VBA. Is this possible?
I thought about using conditional formatting, but I think the text won't disappear when clicked only when someone types something in.
Anyone has any idea how I can achieve this?
Thanks a lot
So you can enter placeholder text like cell value and colour it grey.
Then you can use Conditional Formatting to turn it black if new text is different than placeholder.
This would be the result:
However if you wan to make sure that your input is correct I suggest using Data Validation.

Notepad++ Find and Select Specific Text or Number in my case

I am trying to edit a .srt file, and I am stuck on a specific task. I am sure there may be an easier way, but after searching for a couple hours, I am unable to find anything that helps me. I am trying to select all occurrences of the string "1" and then use the column editor to increment those occurrences by 1.
The first picture here shows the main issue in my .srt file. I am wanting to Select, not highlight all of the values that are currently highlighted in green. The find and replace box doesn't seem to help any because I need to do my increment operation using the column editor on the selected string. I have also tried the mark feature and that didn't do any good either.
Once I have them selected I can do These operations.
I know that I can hold the ctrl key down and manually select the lines that I need to edit, but that would take forever. It is kind of frustrating knowing that the text I need to select is already highlighted in green, but not selected. I am only a novice user when it comes to Notepad++ so I don't know all the features. Any help would be much appreciated. Thanks.
This is not possible to select that text easily. However, if you have PythonScript plug-in, this is easily done with Python script like
counter = -1
def increment_whole_line_number(match):
global counter
counter += 1
return str(int(match.group())+counter)
editor.rereplace(r'(?m)^\d+$', increment_whole_line_number)
The (?m)^\d+$ regex matches a whole line that consists of digits only (1 or more digits).
Here are the instructions on how to install the working PythonScript version (as the built-in does not work for me for some reason).
Here is my test:

how can i display text in different colors in a jtextPane

i want to display a text in a jtextPane but on each time i want it to be with a different color without changing the previous text color if that possible
Any help will be appreciated
thank's in advance
You can use StyledEditorKit.ForegroundAction, but also StyledDocument.setCharacterAttributes , or edit the inputAttributes from StyledDocument.getInputAttributes. You can use StyleConstants.setForeground to edit a MuttableAttributeSet like a SimpleAttributeSet for instance.

Drive spreadsheet, wrapping link

I'm trying to find a way to make Google Spreadsheet wrap a link, and showing the content in many lines, just like microsoft excel works:
I've found nothing so far on how to implement this, which should be used very often I believe.
Here's how the same excel works imported to Google Spreadsheet:
In the google spreadsheet I selected "Wrap text" but it only wraps it, hiding the overflow of it, however I can't see the whole link.
Any help is greately appreciated.
If you don't mind modifying the contents of the cell in order to display wrapped text, you could use an additional column with a formula like this to insert spaces after certain characters so that the url can wrap:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B1,"&","& "),"/","/ "),"?","? "),"#","# ")
You should keep the original URL around though, since the resulting value will no longer be a valid URL.
Google Spreadsheets only wraps text where there is white space or hyphens. It will not wrap in the middle of a word the way Excel does. There's no way around this I'm afraid.

Change active line color in Dreamweaver

Is there any way to change the active line in Dreamweaver to something? Like yellow such as most text editors support. I've searched the preferences and don't seem to see it. Would make it much easier to see which line I'm currently on.
In Dreamweaver CS4, you can click on the line number to the left of the text and it will highlight the line. As soon as press an up or down arrow key or click on another part of the text, the highlight goes away. I think that's about as close as you're going to get. They probably don't offer a constant highlight because it would interfere with the code coloring.

Resources