Text Highlight and Seek

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

< 脚本Text Highlight and Seek的反馈

评价:好评 - 脚本运行良好

§
发表于:2022-04-20

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.

§
发表于:2022-04-21

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;"

§
发表于:2022-04-21

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"
},

§
发表于:2022-04-25

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.

§
发表于:2022-04-25

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...)

发表回复

登录以发表回复。