https://bugs.kde.org/show_bug.cgi?id=466851

            Bug ID: 466851
           Summary: support custom highlighting markers
    Classification: Applications
           Product: kate
           Version: 22.04.3
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: bugs.kde....@ad.gelduntergang.biz
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to