Skip to main content

Questions tagged [syntax-highlighting]

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.

1 vote
0 answers
24 views

I'm using treesitter inside neovim, for all of the awesome reasons we already know. My (legacy) code has a lot of SQL statements in PHP strings. Using TS I've got it to recognise SQL inside PHP ...
Codemonkey's user avatar
0 votes
1 answer
48 views

(This is a second attempt at solving the underlying problem from `hi clear` in colorscheme unsetting certain LaTeX highlights, posted in response to comments made under Maxim Kim's answer.) I am using ...
jwodder's user avatar
  • 179
1 vote
1 answer
110 views

I am using Vim 9.1.1800, installed via Homebrew on macOS Sonoma 14.7.8. Currently, when I open the following minimal *.tex document in Vim: \documentclass{article} \begin{document} \textbf{Bold} and \...
jwodder's user avatar
  • 179
2 votes
1 answer
89 views

My script includes synID() but does not work on a help file after nvim 0.10.0. It is because nvim starts to use treesitter highlighting and does not set the syntax option. Is there any alternative ...
Rick Howe's user avatar
  • 423
1 vote
1 answer
78 views

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 ...
WeariTraveller's user avatar
0 votes
0 answers
83 views

I have this right now, local servers = { pyright = vim.tbl_deep_extend('force', default_settings, { settings = { python = { analysis = { ...
six's user avatar
  • 1
1 vote
1 answer
187 views

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/...
David Froger's user avatar
1 vote
2 answers
180 views

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,...
karlh's user avatar
  • 435

15 30 50 per page
1
2 3 4 5
53