syntax highlighting in nvim help files - syntax

Any reason why :h lsp doesn't show any syntax highlight, where as h: mason does provide some syntax highlight of embedded LUA code? Within a same session, opened help files in 2 different tabs (you can see in the images below). Below are images for references,
I'm expecting all help files containing embedded code should get syntax highlight.

Related

Change syntax highlighting to apply at save or runtime only, not while editing

Sublime text 4 on windows 11 and debian linux
Syntax highlighting currently applies in real time, while typing. I do not like to see full lines highlighted when I am writing or editing a line, but I do want to see those errors highlighted when saving or running.
Is there a way to change when syntax highlighting is applied?

.hbs syntax highlighting in Coda (OSX)

Does anyone know how I can enable syntax highlighting for .hbs files in Coda?
At the moment everything is in white. If I rename the file to something.html it works.
Resolved this myself.
In Coda Preferences, Select Editor, add a Custom Syntax Mode at the bottom.

Notepad++ indent guide all wrong

I wanted to add some auto-indenting to Notepad++ to my Javascript code. That semi-worked: it now indents the previous line's amount, but doesn't indent any extra for new scopes. Now though, my indent guides are all wrong: every extra character creates an indent guide on the lines below it, instead of indent guides only for extra scope. It's like this in all file types, not just Javascript. Help!
Note: I was on 5.9.x, now on 6.5.2. Doesn't do anything. System Restore didn't do anything either.
Here is a screenshot that shows the problem:
Please try checking this answer.
This is not addressing indentation, but structural highlighting, what is superset of indentation in many cases.
I'm sorry this is for visual studio, but most answers I could find lead there. Basic version of VisualStudio should be for free download. Optionally you can search Google for "javascript indent guides" to find some other editor.

Show Indent Guide Lines In Xcode

Coming from a background using Visual Studio and Notepad++ I'm used to the indent guides which help to visually enhance sections of code where the curly braces are used,
Xcode (No indent guides)
Visual Studio (Nice tidy indent guides)
As you can see from the images above sometimes there are sections of code where multiple levels of curly braces are open and it gets messy without any indent guides.
Are there any options or plugins that will allow xcode to display the indent guides in between sections of code? Like the VS2010 sample?
In Xcode 10, if you press Command and hover over the structure it will show what is desired. It is not permanent but it helps.
Xcode doesn't have this feature (not that I'm aware of) , but it has a (kinda) similar one. If you look closely in a method with a few loops or if structures, each structure gets a black tint on the left side of the editing area (right next to the line numbers).
You can collapse or expand the functions as needed.
I've been searching the same but the most similar solution on Xcode 11 is shows invisibles

Visual Studio: Preserving syntax coloring when pasting code into HTML

I'm writing some documentation that will occasionally include C# or C++ code snippets.
In Visual Studio, the Edit/Copy command includes syntax coloring. You can see this if you paste the text into, e.g., Word or Outlook. In fact, if you use the "Paste Special..." command, you can see that it's "Rich Text (RTF)".
However, when pasting this text into an HTML file in Visual Studio, none of the colouring (or even formatting) is preserved.
Any ideas? I'm looking specifically for something that works locally (preferably in Visual Studio), not JavaScript-based solutions (such as SyntaxHighlighter).
There's an addin called CopySourceAsHtml which does a pretty neat job. I've used it a few times, but I use a Javascript to do the highlighting on my blog these days (so it's "plaintext readable").
You can use existing C to HTML syntax highlighter tools for converting your snippets into HTML and copy&pasting from there. Here's a list of such tools (not exhaustive and in no particular order):
GNU Enscript
GNU Emacs with htmlize.el module allows you to dump a highlighted Emacs buffer as HTML
There might also exist web services that allow you to copy&paste C code into a form and get highlighted HTML back.
I use this for highlighting code on webpages. It's simple to use and easy to extend.
http://code.google.com/p/syntaxhighlighter/
It also supports C#.

Resources