mirror of
https://github.com/mthenw/frontail.git
synced 2026-04-26 02:05:57 +03:00
[GH-ISSUE #64] --ui-highlight regex word #40
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/frontail#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rochmad on GitHub (Feb 26, 2016).
Original GitHub issue: https://github.com/mthenw/frontail/issues/64
did ./preset/defatult.json support regex for maching word ?
@mthenw commented on GitHub (Feb 26, 2016):
Hey. It should because it uses
String.prototype.replacehttps://github.com/mthenw/frontail/blob/master/lib/web/assets/app.js#L148@rochmad commented on GitHub (Feb 26, 2016):
can u explain to me. how to ?
and i cant use multiple word highlight
{
"words": {
"error": "color: red;"
},
}
thanks before
@mthenw commented on GitHub (Feb 26, 2016):
Oh, sorry it's not possible right now. I forgot how patterns are defined. Not sure when I will have a time to implement that though.
@NickBuilder commented on GitHub (Nov 24, 2016):
Is the highlighting feature still working? I'm having trouble getting it to work.
Its a great UI anyhow though! Great work!
fyi:
Edit: Sorry my mistake apparently. Now its working as expected. Also managed to define multiple highlighting conditions so now I'm more than satisfied!
Sorry for bothering you!
@mthenw commented on GitHub (Nov 25, 2016):
@NickBuilder yup, working for me. Could you create separate issue with description what is not working?
@ThomDietrich commented on GitHub (Mar 20, 2017):
I'd also be interested to use regex for highlighting. @mthenw are you still willing to look into this feature? Thanks for your work on this great little project!
In particular I'd be interesed in grouping, example:
I want to highlight "BD_Heating_ActTemp" hence highlighting needs to be similar to
@chetanpatil1984 commented on GitHub (Jul 13, 2017):
+1
@branko-tanovic-modoolar commented on GitHub (Feb 8, 2018):
+1
@x-drum commented on GitHub (Jun 17, 2018):
+1 nice to have feature, any news or deadline for this? (thanks and keep up the good work)
@aliasnameless commented on GitHub (Jan 31, 2023):
Hi all, I found a solution to this issue!
All you need to do is add the new function after function
var _highlightWord = function(line) { ... }in file /usr/local/lib/node_modules/frontail/web/assets/app.jsChange the code on line 326 in the same file from
p.innerHTML = _highlightWord(data);top.innerHTML = _highlightRegExpr(_highlightWord(data));Then add a new section called regexpr to the file /usr/local/lib/node_modules/frontail/preset/default.json
My variant is:
And voilà.