Bug 466851 - support custom highlighting markers
Summary: support custom highlighting markers
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.04.3
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-04 21:55 UTC by m.eik michalke
Modified: 2023-03-04 21:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.eik michalke 2023-03-04 21:55:06 UTC
i would like to see a kate module that adds support for easily customizable highlighting markers in the form of specially formatted comments, with the ability of also defining colors.

there's multiple use cases for this. for instance, people working in teams on the same document might like to write comments that others can visually attribute to their authors. also, when i'm working on larger markdown documents or similar, i would like to be able to add comments to myself in various categories, like "check reference" or "add literature". these categories would be highly subjective and even differ from document to document.

what i would like to suppose is for kate to recognize a special format of comments that is evaluated when the module is active. an arbitrary example:

# ~:check reference: #44bb22 #fff
# ~:add literature: #d4bde5 #333

in this example, "# ~:" would mark the beginning of a marker definition, wehre the marker itself is put between two colons, followed by two color definitions (background and foreground). it could also be four colors, with the latter two defining background and foreground of the text that follows the marker when it is used in the document:

# check reference: is this year correct?
...
# add literature: wasn't there an article by foo & bar?

here, the comments begin with previously defined markers and a colon. they should then be colored as defined so you can quickly see them.

i imagine that many users would find such a feature helpful. especially if would work independent of the language used, e.g.

<!-- ~:check reference: #44bb22 #fff -->
% ~:check reference: #44bb22 #fff
...

i hope this was already implemented and i was just too dumb to find it ;)