Questions tagged [syntax-highlighting]

Syntax highlighting is a feature of some text editors that display text (especially source code) in different colors and fonts according to the category of terms.

Syntax highlighting is a feature of some text editors that display text (especially source code) in different colors and fonts according to the category of terms. For example, any given language will have certain repeating elements like strings, variables, functions or other keywords that can be color-coded to improve readability. It is used to identify syntax errors in the code and to make reading the code more visually appealing.

3594 questions
52
votes
9 answers

How do I embed source code or HTML in Open Office Org Presentations without using screenshots?

I need to write a lot of class courses presentations to my programming class, and I constantly need to show source code (mainly C code). I don't find a easy way to: Copy my source code from my editor (kate) and Paste it formated and with source…
DrBeco
  • 11,237
  • 9
  • 59
  • 76
52
votes
2 answers

Free/open source code editor UI control for .Net

I'm looking for a free, syntax-highlighting, possibly autocompleting "Programmer's textbox" style control for use in a Visual Studio Windows Forms or WPF project. It should work with C# and self-defined languages, and the licence should permit its…
51
votes
8 answers

Is there syntax highlighting for assembly in Sublime Text 2?

I'm unable to highlight my assembly.
y0no
  • 513
  • 1
  • 4
  • 5
50
votes
8 answers

Syntax highlighting markdown code blocks in Jekyll (without using liquid tags)

It seems like syntax highlighting in Jekyll is limited to using liquid tags and pygments like so: {% highlight bash %} cd ~ {% endhighlight %} But I've imported my existing blog from wordpress and it was written in markdown (using markdown code…
markquezada
  • 8,444
  • 6
  • 45
  • 52
50
votes
3 answers

Prevent "test/expect/etc is not defined" errors when using Jest

Facebook's Jest testing framework is easy to get started with, but the documentation overlooks an annoying aspect: test statements will be highlighted as errors by any editor that tries to warn of undefined symbols, because test, expect, and all…
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404
50
votes
8 answers

Autocompletion in ACE editor

I've found simmilar question: Ace Editor autocomplete and multiple languages But the responses were that autocompletion is not supported by ACE, and according to Google group for Ace Editor "It is on my wishlish for Ace and we definitively need…
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
49
votes
4 answers

Pandoc: What are the available syntax highlighters?

Bullet point 18 of http://pandoc.org/demos.html#examples shows how to change the syntax highlighter used by giving an argument to --highlight-style. For example: pandoc code.text -s --highlight-style pygments -o example18a.html pandoc code.text -s…
user1002119
  • 3,692
  • 4
  • 27
  • 30
48
votes
6 answers

Syntax highlight for .ejs files in vim

What is the best way to make vim highlight ejs (http://embeddedjs.com/) files? Is it possible to set up html highlight for the file in general and javascript highlight to it's parts inside <% %>? Appreciate your help!
lyuba
  • 6,250
  • 7
  • 27
  • 37
47
votes
5 answers

Syntax highlighting for Dockerfile in Sublime Text?

Is it possible to get syntax highlighting for a Dockerfile in Sublime Text?
Ben Harrison
  • 2,121
  • 4
  • 24
  • 40
47
votes
2 answers

Integrating Nunjucks with IntelliJ IDEA / Webstorm

How can I add syntax highlighting to Nunjucks template files in IntelliJ IDEA / Webstorm? There is no obvious plugin available. Perhaps there is something for a similar templating engine that would work?
JoshuaDavid
  • 8,861
  • 8
  • 47
  • 55
47
votes
11 answers

Text editor/viewer with ANSI codes rendering support for Windows

I need some tool to display text containing ANSI codes correctly on Windows. No full support needed, but at least coloring/bold is a must. Reason: My logger/debug module produce nicely rendered rich output with important sections colored using ANSI…
SF.
  • 13,549
  • 14
  • 71
  • 107
47
votes
9 answers

How do I add syntax highlighting to a WordPress blog hosted on WordPress.com?

I'd like to have a good syntax highlighter for my WordPress blog. What options do I have available? I often see one which has well-colored syntax highlighting and options to copy to the clipboard. Does anyone have an idea what tool this is?
codingfloor
  • 813
  • 1
  • 6
  • 11
46
votes
5 answers

Enabling Liquid templating syntax highlight in webStorm/phpStorm

I wonder if someone managed to enable the Liquid templating engine syntax highlighting in WebStorm IDE, I work a lot on Shopify stores and really like using Webstorm for that purpose. Did anyone managed to get this working? I found some resources…
Ilia luk
  • 2,065
  • 2
  • 16
  • 18
45
votes
3 answers

Color (syntax highlighting) within an HTML tag

In a code fragment like the following ... class Foo { internal Foo() { for (int i = 0; i < 42; ++i); } } ... its various keywords and so on are color-coded when they're displayed in my browsers. When I do "View…
ChrisW
  • 54,973
  • 13
  • 116
  • 224
45
votes
10 answers

Gmail Syntax Highlighter

I sent my code to my friend over Gmail but as you guess, the code is not highlighted in Gmail. Is there solution to highlight code that is sent over Gmail?
firstthumb
  • 4,627
  • 6
  • 35
  • 45