DebugViewPP icon indicating copy to clipboard operation
DebugViewPP copied to clipboard

Add custom styling support

Open Drugoy opened this issue 8 years ago • 4 comments

Would be nice if messages could be styled based on something like BBCodes. For example coloring messages based on some syntax, like

This entire message should be red {!#FF0000!}
This entire message should be green {!#00ff00!}

Or maybe even something more enhanced like

This message contains 2 words colored differently: {!#f00}red{!/} and {!#0f0}green{!/}.

And bold/italic/underline text styling support using the same or similar kind of syntax would be extra nice. The tags' text, of course should NOT be shown to user, instead they should just get interpreted and visually hidden.

This would let user generate smart debugging messages so that the user knows where to look at in the whole ton of debugging log.

Drugoy avatar Oct 22 '15 11:10 Drugoy

I like it! It might be possible to implement this once we have added #191 and we add working on that now :) I will definitely look into this. Currently coloring is of course already possible using filters, but after the log is saved the colors are gone :)

janwilmans avatar Oct 22 '15 11:10 janwilmans

I like that you like it! :) But I don't get the relation of this feature to #191: what I suggested would be useful not only for looking at previously saved logs, but actually everywhere else: sometimes my code generates lots of debugging messages and since they are plain text and can't be properly structured - it's sometimes quite hard to visually find the needed part from the whole long message, and do it for a bunch of lines at once. With that feature I could just highlight the needed values using different colors and... BAM! I won't need to search for them in the long massive of similar lines that may get shifted to left/right because for some cases the previous value was absent or whatever.

Drugoy avatar Oct 22 '15 11:10 Drugoy

"what I suggested would be useful not only for looking at previously saved logs, but actually everywhere else", which was the point I was trying to make, but apparently I'm not doing a very good job :)

I understand the benefits of your request, we want to implement it, its only a matter of time :)

janwilmans avatar Oct 23 '15 17:10 janwilmans

Drugoy: notice that in the meanwhile, as long as we have not implemented this, you can use a 'poor mans solution' and add '{!#FF0000!}' as highlight filter, and it will color the line red, add {!#00ff00!} and a second highlight filter, and it will color the whole line green... it will not give you the full freedom of 16 million colors, but it might be workable...

janwilmans avatar Nov 21 '15 19:11 janwilmans