# \#highlighter

**URL:** https://discuss.kakoune.com/tag/highlighter/14.md

[Latest](https://discuss.kakoune.com/latest.md) · [Categories](https://discuss.kakoune.com/categories.md) · [Tags](https://discuss.kakoune.com/tags.md)

---

## [Web Dev config (Vue js)](https://discuss.kakoune.com/t/web-dev-config-vue-js/2959)

<div class="topic-metadata">

**Author:** [@Nikita0x](https://discuss.kakoune.com/u/Nikita0x)\
**Replies:** 5\
**Last updated:** [August 11, 2026, 9:15am UTC](https://discuss.kakoune.com/t/web-dev-config-vue-js/2959 "2026-08-11T09:15:51Z")

</div>

Hello everybody. I am a new user to Kakoune - I was wondering - are there any web developers (preferably working with Vue.js) - that use Kakoune and have full set up already? (Lsp, Highlighting)? I would greatly appreci…

---

## [Show me your gf (goto-file)](https://discuss.kakoune.com/t/show-me-your-gf-goto-file/2436)

<div class="topic-metadata">

**Author:** [@42xel](https://discuss.kakoune.com/u/42xel)\
**Replies:** 7\
**Last updated:** [April 22, 2026, 10:09pm UTC](https://discuss.kakoune.com/t/show-me-your-gf-goto-file/2436 "2026-04-22T22:09:25Z")

</div>

A gripe I have with the default goto-file command is that it doesn’t understand syntax like file:line:column which is often outputted by debuggers (including kakoune’s !). I’ve looked around and found some promising plu…

---

## [Raku filetype highlighter (know previously as Perl6)](https://discuss.kakoune.com/t/raku-filetype-highlighter-know-previously-as-perl6/2810)

<div class="topic-metadata">

**Author:** [@duncode](https://discuss.kakoune.com/u/duncode)\
**Replies:** 0\
**Last updated:** [January 10, 2026, 8:03am UTC](https://discuss.kakoune.com/t/raku-filetype-highlighter-know-previously-as-perl6/2810 "2026-01-10T08:03:12Z")

</div>

A start at \*.raku filetype highlighters. Chipping away locally and not all setup yet. So, I’m able to share through this platform rather than a repo at the moment. Anyone looking to or wanting a bit of colour for their R…

---

## [JSON highlighters for keys](https://discuss.kakoune.com/t/json-highlighters-for-keys/758)

<div class="topic-metadata">

**Author:** [@Delapouite](https://discuss.kakoune.com/u/Delapouite)\
**Replies:** 6\
**Last updated:** [November 10, 2025, 7:28am UTC](https://discuss.kakoune.com/t/json-highlighters-for-keys/758 "2025-11-10T07:28:34Z")

</div>

Hi Currently when I edit a JSON file, it looks like this. Almost everything is in yellow (which is my default color for strings): I would love to have a different color for JSON keys (here in pink but it doesn’t mat…

---

## [Syntax highlighting for typst in kakoune](https://discuss.kakoune.com/t/syntax-highlighting-for-typst-in-kakoune/2744)

<div class="topic-metadata">

**Author:** [@Migsej](https://discuss.kakoune.com/u/Migsej)\
**Replies:** 0\
**Last updated:** [August 22, 2025, 5:40pm UTC](https://discuss.kakoune.com/t/syntax-highlighting-for-typst-in-kakoune/2744 "2025-08-22T17:40:12Z")

</div>

---

## [Forth.kak: a half-baked FORTH syntax highlighter](https://discuss.kakoune.com/t/forth-kak-a-half-baked-forth-syntax-highlighter/2586)

<div class="topic-metadata">

**Author:** [@thacuber2a03](https://discuss.kakoune.com/u/thacuber2a03)\
**Replies:** 1\
**Last updated:** [February 2, 2025, 2:03pm UTC](https://discuss.kakoune.com/t/forth-kak-a-half-baked-forth-syntax-highlighter/2586 "2025-02-02T14:03:25Z")

</div>

was kinda disappointed that there was no FORTH highlighter so I just uhhhh made one lol it’s rather incomplete, as it’s still missing a ton of words, string regions don’t respect words that parse the word just in front …

---

## [Highlighters.kak: a set of highlighters for various programming languages](https://discuss.kakoune.com/t/highlighters-kak-a-set-of-highlighters-for-various-programming-languages/2616)

<div class="topic-metadata">

**Author:** [@thacuber2a03](https://discuss.kakoune.com/u/thacuber2a03)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 7:44pm UTC](https://discuss.kakoune.com/t/highlighters-kak-a-set-of-highlighters-for-various-programming-languages/2616 "2025-01-04T19:44:05Z")

</div>

hey, it’s me again this time I made up a repo to compile together all programming language highlighters I randomly decide to make, since making a new repo for each one of them would become tiresome hope you like this…

---

## [Best way to check the face under the cursor?](https://discuss.kakoune.com/t/best-way-to-check-the-face-under-the-cursor/2532)

<div class="topic-metadata">

**Author:** [@evannjohnson](https://discuss.kakoune.com/u/evannjohnson)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 7:50am UTC](https://discuss.kakoune.com/t/best-way-to-check-the-face-under-the-cursor/2532 "2024-08-27T07:50:51Z")

</div>

I’ve been using Kakoune for a number of months, and I’m starting to write my own customizations. I’m trying to understand the best way to take one action or another based on the face under the primary cursor. It doesn’t …

---

## [Help solving regex errors for syntax highlighting](https://discuss.kakoune.com/t/help-solving-regex-errors-for-syntax-highlighting/2515)

<div class="topic-metadata">

**Author:** [@Ki11erRabbit](https://discuss.kakoune.com/u/Ki11erRabbit)\
**Replies:** 2\
**Last updated:** [July 10, 2024, 4:49pm UTC](https://discuss.kakoune.com/t/help-solving-regex-errors-for-syntax-highlighting/2515 "2024-07-10T16:49:07Z")

</div>

I am writing a highlighter for the Koka programming language and I am using the vscode extension for Koka to provide highlighting. So far I have done most of the highlighting but I am running into the same error for a fe…

---

## [Add-highlighter regex: getting the middle bit \`${args.drop(1).joinToString(" ")}\`](https://discuss.kakoune.com/t/add-highlighter-regex-getting-the-middle-bit-args-drop-1-jointostring/1807)

<div class="topic-metadata">

**Author:** [@duncan](https://discuss.kakoune.com/u/duncan)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 11:32pm UTC](https://discuss.kakoune.com/t/add-highlighter-regex-getting-the-middle-bit-args-drop-1-jointostring/1807 "2021-07-04T23:32:46Z")

</div>

Hey @yerlaser and wider community, I’m having trouble getting the middle bit ${args.drop(1).joinToString(" ")} highlighted for kotlin.kak. using add-highlighter regex yet on the next line it picks it up and you …

---

## [Highlighter in parallele of a "usermode -lock" menu](https://discuss.kakoune.com/t/highlighter-in-parallele-of-a-usermode-lock-menu/1762)

<div class="topic-metadata">

**Author:** [@scr](https://discuss.kakoune.com/u/scr)\
**Replies:** 3\
**Last updated:** [June 5, 2021, 12:20am UTC](https://discuss.kakoune.com/t/highlighter-in-parallele-of-a-usermode-lock-menu/1762 "2021-06-05T00:20:10Z")

</div>

Hello, I have a custom usermode, that I call with the -lock option. I would like to have an highlighter that appear when I enter the usermode and is removed when I leave it. I have tried to have this behaviour with ho…

---

## [How do you wrap text (via a highlighter) without preceding spaces?](https://discuss.kakoune.com/t/how-do-you-wrap-text-via-a-highlighter-without-preceding-spaces/1745)

<div class="topic-metadata">

**Author:** [@pendingcircumference](https://discuss.kakoune.com/u/pendingcircumference)\
**Replies:** 3\
**Last updated:** [May 29, 2021, 2:27am UTC](https://discuss.kakoune.com/t/how-do-you-wrap-text-via-a-highlighter-without-preceding-spaces/1745 "2021-05-29T02:27:14Z")

</div>

When I’m working with plaintext files I frequently have long lines that I’d like to be visually wrapped. For this I do something like the following: add-highlighter buffer/ wrap -word -width 50 However, that frequently…

---

## [Highlight all pairs (rainbow)](https://discuss.kakoune.com/t/highlight-all-pairs-rainbow/811)

<div class="topic-metadata">

**Author:** [@JJK96](https://discuss.kakoune.com/u/JJK96)\
**Replies:** 23\
**Last updated:** [March 7, 2021, 2:35pm UTC](https://discuss.kakoune.com/t/highlight-all-pairs-rainbow/811 "2021-03-07T14:35:16Z")

</div>

I’m looking for a plugin that highlights all pairs ({}()\[\]""'' etc.) with each pair having a different color. This highlighting could be done on demand, (for example when I’m looking for that one unclosed parenthesis). …

---

## [Use options in regex highlights](https://discuss.kakoune.com/t/use-options-in-regex-highlights/1375)

<div class="topic-metadata">

**Author:** [@ReedWade](https://discuss.kakoune.com/u/ReedWade)\
**Replies:** 4\
**Last updated:** [November 19, 2020, 8:14am UTC](https://discuss.kakoune.com/t/use-options-in-regex-highlights/1375 "2020-11-19T08:14:35Z")

</div>

Hello there, I’d like to do something as declare-option -docstring "The length of line" int linelength 80 add-highlighter shared/too-long regex "^\[^\\n\]{%opt{linelength}}(\[^\\n\]\*)$" 1:white,yellow and use this in my fi…

---

## [Announcing mediawiki.kak](https://discuss.kakoune.com/t/announcing-mediawiki-kak/1374)

<div class="topic-metadata">

**Author:** [@Ordoviz](https://discuss.kakoune.com/u/Ordoviz)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 6:19pm UTC](https://discuss.kakoune.com/t/announcing-mediawiki-kak/1374 "2020-11-17T18:19:03Z")

</div>

When making complex changes to a wiki, I prefer Kakoune instead of a web-based editor. So I wrote mediawiki.kak which provides syntax highlighting for MediaWiki markup as used on Wikipedia and Fandom among others. There…

---

## [Region highlighters the -recurse flag](https://discuss.kakoune.com/t/region-highlighters-the-recurse-flag/1305)

<div class="topic-metadata">

**Author:** [@duncan](https://discuss.kakoune.com/u/duncan)\
**Replies:** 2\
**Last updated:** [October 19, 2020, 8:50am UTC](https://discuss.kakoune.com/t/region-highlighters-the-recurse-flag/1305 "2020-10-19T08:50:12Z")

</div>

Hi all, trying to use the -recurse flag to highlight matching parentheses and leave a regex non-capture group unmolested for additional highlighting but having no luck. Is this possible at all? add-highlighter shared/r…

---

## [Intro to Kakoune highlighters](https://discuss.kakoune.com/t/intro-to-kakoune-highlighters/814)

<div class="topic-metadata">

**Author:** [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Replies:** 1\
**Last updated:** [July 9, 2020, 7:06am UTC](https://discuss.kakoune.com/t/intro-to-kakoune-highlighters/814 "2020-07-09T07:06:32Z")

</div>

Yesterday I decided to learn about writing a syntax highlighter for Kakoune. Although it wasn’t too difficult, given the reference docs that come with Kakoune and all the examples in rc/filetype/, it did take me a while…

---

## [Highlight current line](https://discuss.kakoune.com/t/highlight-current-line/1047)

<div class="topic-metadata">

**Author:** [@OS2](https://discuss.kakoune.com/u/OS2)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 9:57pm UTC](https://discuss.kakoune.com/t/highlight-current-line/1047 "2020-05-30T21:57:05Z")

</div>

Hi, I’m looking to try Kakoune for the first time. I was wondering if there’s a way to change the color of the cursor current line? Namely to highlight the cursor line.

---

## [How does the highlighter know that I'm inside quotes and how can I use it in my plugin?](https://discuss.kakoune.com/t/how-does-the-highlighter-know-that-im-inside-quotes-and-how-can-i-use-it-in-my-plugin/970)

<div class="topic-metadata">

**Author:** [@scr](https://discuss.kakoune.com/u/scr)\
**Replies:** 4\
**Last updated:** [May 9, 2020, 7:24pm UTC](https://discuss.kakoune.com/t/how-does-the-highlighter-know-that-im-inside-quotes-and-how-can-i-use-it-in-my-plugin/970 "2020-05-09T19:24:40Z")

</div>

The highlighter does a good job at recognizing symetrical delimiter like quotes. For a plugin I’m making I would like to know if I’m inside quotes or not, which is not an easy task. Take for example: "Don't" + 'miss'\` …

---

## [How to highlight one character by number of column and number of line?](https://discuss.kakoune.com/t/how-to-highlight-one-character-by-number-of-column-and-number-of-line/959)

<div class="topic-metadata">

**Author:** [@Rezov](https://discuss.kakoune.com/u/Rezov)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 6:59am UTC](https://discuss.kakoune.com/t/how-to-highlight-one-character-by-number-of-column-and-number-of-line/959 "2020-04-16T06:59:16Z")

</div>

how to highlight one character by number of column and number of line ?

---

## [Syntax highlighting for Twee stories](https://discuss.kakoune.com/t/syntax-highlighting-for-twee-stories/900)

<div class="topic-metadata">

**Author:** [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 11:52am UTC](https://discuss.kakoune.com/t/syntax-highlighting-for-twee-stories/900 "2020-03-02T11:52:30Z")

</div>

A while ago I was working on a Twine story in Kakoune (using the third-party Tweego compiler) and whenever the creative side of my brain was drained I exercised the logical side by tinkering with a Kakoune syntax highlig…

---

## [Having trouble highlighting strings inside a nested region](https://discuss.kakoune.com/t/having-trouble-highlighting-strings-inside-a-nested-region/870)

<div class="topic-metadata">

**Author:** [@EpocSquadron](https://discuss.kakoune.com/u/EpocSquadron)\
**Replies:** 1\
**Last updated:** [February 22, 2020, 6:00am UTC](https://discuss.kakoune.com/t/having-trouble-highlighting-strings-inside-a-nested-region/870 "2020-02-22T06:00:23Z")

</div>

I’m attempting to create a syntax highlighter for twig templates, based on the highlighter for django templates in kakoune-extra. The highlighter splits itself into three groups, code, scope and expansion. The first call…

---

## [\[Solved\] Highlighter based animations?](https://discuss.kakoune.com/t/solved-highlighter-based-animations/691)

<div class="topic-metadata">

**Author:** [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Replies:** 14\
**Last updated:** [September 15, 2019, 4:14pm UTC](https://discuss.kakoune.com/t/solved-highlighter-based-animations/691 "2019-09-15T16:14:53Z")

</div>

Wanted to make something like Emacs beacon to find my cursor after jupms between windows, and buffers: declare-option str beacon\_final\_bg "32302F" declare-option str beacon\_delay "0.1" declare-option str beacon\_transiti…

---

## ['add-highlighter' no window in context](https://discuss.kakoune.com/t/add-highlighter-no-window-in-context/401)

<div class="topic-metadata">

**Author:** [@Panke](https://discuss.kakoune.com/u/Panke)\
**Replies:** 1\
**Last updated:** [March 24, 2019, 4:12pm UTC](https://discuss.kakoune.com/t/add-highlighter-no-window-in-context/401 "2019-03-24T16:12:11Z")

</div>

I’ve build kakoune v2019.01.20 myself\* and my autoload directory points to the correct files (that is to those from v2019.01.20). When starting kakoune (with or without my own kakrc) I get a lot of errors. Mostly 'add-h…

---

## [Highlight matching braces of the pair that would be selected with \`\<a-a\>B\`](https://discuss.kakoune.com/t/highlight-matching-braces-of-the-pair-that-would-be-selected-with-a-a-b/315)

<div class="topic-metadata">

**Author:** [@EpocSquadron](https://discuss.kakoune.com/u/EpocSquadron)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 12:09am UTC](https://discuss.kakoune.com/t/highlight-matching-braces-of-the-pair-that-would-be-selected-with-a-a-b/315 "2019-02-05T00:09:58Z")

</div>

In other words, it’d be nice to always be reminded of what pair of braces I’m operating within as sometimes I think i would be selecting a larger block when in fact kakoune selects the more immediate one (such as when Im…

---

## [Kakoune-mark is simple but profoundly useful](https://discuss.kakoune.com/t/kakoune-mark-is-simple-but-profoundly-useful/17)

<div class="topic-metadata">

**Author:** [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Replies:** 5\
**Last updated:** [September 25, 2018, 11:06pm UTC](https://discuss.kakoune.com/t/kakoune-mark-is-simple-but-profoundly-useful/17 "2018-09-25T23:06:47Z")

</div>

Per the plugin page: Mark is an extension to the kakoune editor that allows highlighting all occurrences of one or several words in different colors.
