Syntax highlighting in Midnight Commander viewer - syntax-highlighting

I would like to mc viewer (mcview, run by F3 key) highlights my C++ code. Is it possible?
For editing (mcedit, F4 key) I am using vim with its own syntax highlighting. For viewing, I can't find such option. There is
editor_syntax_highlighting=1
Which can be changed in ~/.mc/ini or ~/.config/mc/ini but it's obviously related with built-in mcedit, not the viewer. Is there something like viewer_syntax_highlighting=1 or any other way how to highlight syntax in viewer?

Viewer doesn't do syntax highlighting, only Editor does.

Related

Brace highlighting in Nano text editor?

Is there a method for highlighting matched brace pairs in nano text editor?
My understanding is syntax can be changed in the config file, but unlike gedit there is no gui option to select brace highlighting.
Alternately, im more than happy to hear sugfestio s for a text editor thats linux compatible and semi-light weight.
*Needs to be compatible with c++.

IDE for IcedCoffeeScript programming?

What IDE can I use to develop IcedCoffeeScript code with syntax highlight and intellisense?
I tried to use Webstorm, but it does not support IcedCoffeeScript.
You can't have more than syntax checking/coloring and snippets with (iced)CoffeeScript (on any IDE) because the way the language operate. So intellisense is out of game. Many environments supports autocomplete, who can help.
Atom Editor has Iced Coffee Compiler, syntax highlight(the same with sublime or other), and someone have add snippets(or). Finaly has a very good autocomplete package by default.
Sublime has only syntax hightligh
Bracket editor have nothing!
same with visual studio code.
note: all editors can have different kinds of autocomplete features with or without packages(extensions).

.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.

Aptana Studio 3 - Syntax highlighting for Handlebars files

How do I get Aptana to apply the same syntax highlighting and auto-complete that exists on .html files to my files that end in .handlebars?
I'm assuming there must be some setting in Preferences to allow this, but I'm not seeing it.
If it helps, I'm using version 3.0.7.2011
Ok, recently figured this one out.
Under Windows > Preferences select General > Editors > File Associations.
Here, you can simple add whatever extension you want, then the editor that you want to apply it to.
Here's a screenshot:
After you click "Ok" you will have whatever syntax highlighting or code completion that the editor you specified has.

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