Text Highlight and Seek

Automatically highlight user-defined text with Seek function (2019-09-22)

< Rückmeldungen auf Text Highlight and Seek

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 20.04.2022

I hope you can help. Most things are working great for me... There's just one thing I'm trying to figure out.

I tried using CUSTOM to enter "text-decoration: underline;" for a given set of keywords
and then I wanted this setting to not overwrite the colors, so I put inherit instead of the RGB(0,0,0). for the foreground and background colors

should those things work?
it seems to sort of work, but behaves unpredictably when trying to copy the settings to another computer.

§
Veröffentlicht: 21.04.2022

I wanted to add that I noticed when I export the file it sometimes contains ... in the middle of the file.
When I paste this newly created settings file into a JSON formatter it fails.

I think the export routine may be having trouble with the CUSTOM setting that contains the formatting "text-decoration: underline;"

§
Veröffentlicht: 21.04.2022

I think I found the issue I was having...
it seems that my Regex was had \d that was not escaped with another slash.
once I fixed it with \\d it appears to be working correctly.

"set777": {
"keywords": "(19|20)\\d\\d[- .](0[1-9]|1[012])",
"type": "regex",
"hlpat": "",
"textcolor": "rgb(255,255,255)",
"backcolor": "rgb(0,136,255)",
"fontweight": "inherit",
"custom": "font-family: Roboto, Times, serif; border-style: solid; border-color: blue;",
"enabled": "true",
"visible": "true",
"updated": "2022-04-21T14:23:44.090Z"
},

Jefferson ScherVerfasser
§
Veröffentlicht: 25.04.2022

I'm glad you found that because I don't think I would have figured it out.

Having ... in the middle of an export could indicate a very large string. I need to come up with a better approach to exporting.

Jefferson ScherVerfasser
§
Veröffentlicht: 25.04.2022

Yes, the ... problem was mentioned before as a Chrome limitation and I never got around to the update.

https://greasyfork.org/en/scripts/13007-text-highlight-and-seek/discussions/12110

(Hangs head in shame...)

Antwort schreiben

Anmelden um eine Antwort zu senden.