毛林林获年度国剧最佳新人 感激恩师尤小刚知遇之恩
百度 我们估计,围绕脸书的争论和讨伐会是一场乱仗,打不出所以然来。
Syntax highlighting is the use of colours, size, typeface, or other attributes to visually indicate it has a special meaning and therefore make it easier to understand the text. For example, marking language keywords with a specific colour.
740 questions
0
votes
1
answer
56
views
How to highlight text inside [...] differently than text inside ![...]!
The goal is to highlight text inside [...] with a different color than text inside ![...]!
Also everything should be nestable such that [...] could contain ![...]! inside of it or vice versa and the ...
1
vote
0
answers
24
views
Why are TypeScript files with shebang in nvim rendered in gray?
I have installed the up-to-date tree-sitter-typescript, and it works well in typescript files without shebang.
I searched online but couldn't find any particularly similar questions. Some people ...
1
vote
1
answer
58
views
How to highlight across regions?
I have a special format in .html.specialext, it is basically an HTML file with special regions delimited by {{ and }}, containing Lua code.
Here is my syntax file (specialext.vim):
if exists("b:...
0
votes
0
answers
32
views
How to ignore missing modules for pyright LSP in nvim-lspconfig?
I have this right now,
local servers = {
pyright = vim.tbl_deep_extend('force', default_settings, {
settings = {
python = {
analysis = {
...
2
votes
2
answers
429
views
Problems with syntax highlighting
I'm using gVim v9.1 on Microsoft Windows 10.
I tried to get syntax highlighting going for CNC Gcode files but ran into all sorts of problems. I looked up the Vim documentation and searched on the ...
1
vote
1
answer
101
views
How to set a highlight group on the captured name of a tree-sitter node?
I'm using nvim v0.11.1 with nvim-treesittter.
I often edit Python code with strings containing SQL, and I would like to apply highlighting on the SQL strings.
I've created a file ~/.config/nvim/...
1
vote
0
answers
70
views
Vim slow upwards scrolling in file with vim9script
If I open the file popup.vim in vim and go to the bottom with G, then scrolling upwards with k is extremely laggy.
The problem only occurs if I hold down k, pressing it repeatedly it works fine. ...
1
vote
2
answers
156
views
TeX syntax: is it possible to change from "stylish" to "non-stylish" after the file is loaded?
When editing a .tex file, is it possible to change the syntax highlighting after a file is loaded so that @ is able to be recognized as part of a command? Normally, this is done at load-time when .sty,...
1
vote
1
answer
43
views
How to conceal <u> and </u> tags in markdown files?
I am using vim-markdown and I want to conceal the tags <u> and </u> of the following text:
Lorem ipsum dolor sit amet, <u>consectetur</u> adipiscing elit, sed do eiusmod tempor
...
0
votes
1
answer
55
views
:hi command in ~/.vimrc not being read
I have set several commands in my .vimrc file, all of which work besides:
:hi MatchParen cterm=none ctermbg=white ctermfg=red
My other commands are:
:colorscheme wildcharm ...
1
vote
0
answers
69
views
Gopls is not providing highlight tokens for constants or packages/namespaces
For example, in the code below the constant "myUrl" will be highlighted as a constant when it is declared (:Inspect = @constant) but not when it is used in main() (:Inspect = @variable). My ...
2
votes
1
answer
101
views
syntax match not working
I want to stop Vim from spell checking inside LaTeX comments. In my .vimrc I have the line:
syntax match Comment /%/ contains=@NoSpell
It does not work, but if I reload .vimrc with :so ~/.vimrc it ...
0
votes
0
answers
182
views
Unable to disable treesitter highlighting in neovim 10
I'm lazy-loading nvim-treesitter which I want to keep doing, but mayve this makes disabling the treesitter syntax highlighting seemingly impossible (tho I can't tell for sure).
What works:
:...
0
votes
1
answer
85
views
How to color pairs of parentheses?
I am looking to color the parentheses in Python and other languages and the the tags in HTML. But the thing is, I want the parentheses at different levels to be colored differently.
Basically, I am ...
1
vote
2
answers
75
views
How to manipulate start and end delimiters of markdown text styles?
I want to define some function (and possibly key-bindings that calls them) to remove, move or replace markdown start and end delimiters.
My approach would be to:
firstly identify if the cursor is ...