## SublimeText – How to override HTML auto comments?

Issue While working on a custom tmLanguage that extends HTML in SublimeText, i tried to create a special marking for auto-commenting (‘Ctrl’+ ‘/’). while the default auto comments in HTML is written in form, i want it to be –[

## Meaning of question mark and x in a regex group

Issue I’m trying to learn Atom’s syntax highlighting/grammar rules, which heavily use JS regular expressions, and came across an unfamiliar pattern in the python grammar file. The pattern starts with a (?x) which is an unfamiliar regex to me. I

## How to enable element highlighting for handlebars in Sublime Text 3?

Issue I have selected the Handlebars option in the footer in Sublime Text 3, but when I click on an element, it isn’t highlighted to show the beginning and end. For example, this is what it looks like when I

## Shouldn't kramdown rouge generate syntax highlight classes with jekyll?

Issue I expected kramdown with rouge to add spans for colorful highlighting, but it just generates a code block. <pre> <code class=”language-py”> def say_hello(): print “Hello world” say_hello() </code></pre> Should I use highlight js to add pretty colors? Shouldn’t rouge

## vim syntax: delete a name of a php variable without dollar sign

Issue In Vim, if I press alt+backspace it will delete the word before the cursor. With default php.vim syntax it deletes a PHP variable like this: What I need to put in a syntax file to make it work like

## Ruby-like Syntax Highlighting in VIM for Thor

Issue How can I configure vim to use the same syntax highlighting for Thor as it does for ruby? When I’m editing a *.thor file, I can use :set syntax=ruby, which works, but is not permanent. Is there a way

## hscolour: Colouring only a sub-expression

Issue Suppose I want to tag syntactic constructs of a monadic action. Is there a simpler (cleaner) definition of colour than this: import Language.Haskell.HsColour.CSS import Language.Haskell.HsColour.Classify colour :: String -> String colour = concat . map renderToken . unwrap .

## Changing the font size of code formatted by SyntaxHighlight GeSHi in MediaWiki

Issue The font size of my code snippets are too small relative to the default font size of the Wiki, which makes them hard to read (see below for an example). Is there anything I can do to change it?

## Syntax highlighting text read from file using CSS from regular expressions

Issue I am attempting to read a file on my server and then use regular expressions to determine what formatting each part of that text file should have when viewed within a web-browser. I am simply opening file.txt‘s contents and

## syntax highlighting in pydb

Issue Is there a way to enable syntax highlighting in pydb command shell (standalone or inside ipython)? Solution People say winpdb is way faster. Switched to it instead. Answered By – Antony Hatchkins Answer Checked By – Candace Johnson (AngularFixing

## Ultraedit docker syntax hightlighting file

Issue At http://www.ultraedit.com/downloads/extras/wordfiles.html I did not find a wordfile for Docker. http://www.ultraedit.com/support/tutorials_power_tips/ultraedit_linux/add_a_wordfile.html explains how you can role your own. Inspired by https://github.com/docker/docker/blob/master/contrib/syntax/vim/syntax/dockerfile.vim I tried: /L20″Docker” Line Comment = # Escape Char = \ String Chars = “‘ File Extensions =

## How to make IntelliJ IDEA recognise code created by macros?

Issue Background I have an sbt-managed Scala project that uses the usual sbt project layout for Scala projects with macros, i.e., a subproject that contains the macros a main project that is the actual application and that depends on the

## What code highlighting libs are there for Java?

Issue I’d like them to be easy to bundle, with few dependencies and easy to use. Solution Do you want to highlight Java code or use a Java lib to highlight some other code? I use these two: https://jhighlight.dev.java.net/ (server-side)

## Conversion of Source Code to PDF from GitHub

Issue I am trying to take all files from a specific repository I have on GitHub and turn them into PDF’s. I have read and seen an example here However, I am still a bit confused on how to go

## Where do I put custom syntax highlighter definitions for Sublime Text?

Issue I have created a custom syntax definition in the new .sublime-syntax format, but I can seem to get it to appear in my list of available syntaxes… I have tried putting it in: <Install Location>/Packages <Install Location>/Packages/User <Install Location/Data/Packages

## How to set the programming language for syntax highlighting etc in Adobe Brackets editor?

Issue I was looking for a code editor that uses a browser rendering engine for its GUI so I can work on code that handles various foreign languages in their native scripts. I’m trying out Adobe Brackets but when I

## Highlighting kills my Razor syntax in Visual Studio 2010

Issue I’m using Expression theme in Visual Studio 2010 Ultimate on Windows 7 operating system. (Note: Actually, I’m not sure this problem occurs because of the dark theme) A few days ago, I decided to learn ASP.NET MVC 4 and

## What other markup syntax is closest to MediaWiki?

Issue GeShi is a syntax highlighting tool used by projects and vendors like MediaWiki and pastebin.com, respectively. However, GeShi does not natively support MediaWiki markup syntax. What would be the closest “look alike” that I could use to highlight a

## Define todo keyword in Python and Sublime Text

Issue Can I define #@TODO or something like that as a keyword to be highlighted in Python? Is this specific to the text editor or to the language/platform? Solution This is very specific to the editor. Language/Platform has nothing to

## Sublime color scheme for XML with Unicode node name

Issue If I use node name in ASCII, I have a nice view: but if I use Unicode node name it is not pretty: How can I fix this? Solution Background The XML syntax highlighting language definition that ships with

## Improve GeSHi syntax highlighting for T-SQL

Issue I’m using WP-GeSHi in WordPress, and largely I’m very happy with it. There are, however, a few minor scenarios where the color highlighting is too aggressive when a keyword is: a variable name (denoted by a leading @) part

## *.less syntax highlighting in Geany

Issue Is there any way to add syntax highlighting for *.less files in Geany? I found that using *.css syntax higlighting, sugessted somewhere in the internet is not enough for me, and in fact it making bloody mess from any

## Get a list of python's essential functions

Issue For syntax highlighting of Python in Python, I’m using the “keywords” module to get a list of the keywords (for, in, raise etc.). But how can I get a list of essential built-in functions? I.E. the ones listed here:

## Regex match everything between dot '.' and close brace '('

Issue I have myObject.myFunction() and I want to match myFunction in a regular expression. If I want to match everything between two strings, the expression abc(.*)def works; so var str = ‘abc test def’;str.match(/.(.*)def/) would return [“abc test def”, “

## How does one use ColorDelegator in from Python IDLE?

Issue I have been developing an IDE for Python, and I have been wondering about saving myself a lot of time by integrating the colorDelegator module from IDLE. Is it possible to make use of it, and how would I

## syntax highlighting while rendering SQL using knitr

Issue knitr will execute SQL code using engine=’mysql’ but not highlight syntax: \documentclass{article} \begin{document} <<engine=’mysql’, engine.opts=”-h localhost”>>= SHOW DATABASES; @ \end{document} On the other hand using engine=’highlight’ will highlight the code but not execute it. \documentclass{article} \begin{document} <<engine=’highlight’, engine.opts=’-S sql

## How to enable syntax highlighting for *.handlebars files within Netbeans 8

Issue Perhaps this question might be silly, but I need some help. I did the upgrade from Netbeans 7.1 to Netbeans 8, in order to get more functionality and I’m involved in a project that uses handlebars. The problem is

## Wrong default syntax highlighting in sublime text 3

Issue I can’t remember touching any related configuration, and for no reason, Sublime chooses “LaTeX Log” highlighting syntax as default for *.html files. I opened the Syntax Specific settings file and it’s empty (?) What can I do in order

## Sublime Text 3 strange javascript highlighting issue after update

Issue So this is really throwing me off after updating and installing a few things in Sublime Text 3 this morning. Couldn’t figure out the right Google keywords for the issue either. Basically the highlighting is now treating object keys

## How can I modify ATOM editor's markdown syntax?

Issue I would like to modify atom.io’s markdown syntax specification for some special purpose editing environment (academic texts), but I fail to identify the language file related to Github Markdown among atom.io’s packages. It looks like every single syntax, except

## How can I get syntax highlighting for a .cu file in Visual Studio?

Issue I am studying CUDA based on the Visual Studio 2008. Could you please tell me how to make syntax highlighting appear in a .cu file? Solution Follow these steps. Copy usertype.dat from Program Files\NVIDIA Corporation\NVIDIA CUDA SDK\doc\syntax_highlighting\visual_studio_8 to Program

## Highlight the jQuery $variable in Sublime Text 3 (build 3103) Issue In Feb 2016, the update to build 3103 broke a custom theme of mine, mostly in regard to Javascript. I really miss the ability to target the$, it seems that it’s now under the scope: meta.function-call.with-arguments.js variable.function.js when

Issue Why does my Jade syntax highlighting look bad in VS Code? (e.g. commented meta when I add line before, last comment always) Did I mess up the syntax or it’s simply VS Code’s fault? It’s not the first time

## In Notepad++, set background color for file type

Issue When various files types are open at the same time, such as .html, .css and regular .txt files in Notepad++, is it possible to have a different main background color for each file type? Whenever I change the background

## CMake syntax highlighting for Visual Studio 2015?

Issue Is there any Addin that brings syntax highlighting for CMakeList.txt files to Visual Studio 2015? BTW: For Visual Studio 2010, Visual Studio 2012, and Visual Studio 2013 there is CMake Tools for Visual Studio. Solution Look at the codeplex

## No syntax highlight for *.qss file in Qt Creator?

Issue It’s wired that Qt Creator didn’t have a syntax highlight for its own style file format , or did i missed some packages ? VER: Qt Creator 2.1.0 Solution I could not find any evidence in Qt’s documentation that

## Lookahead function syntax error (Regex)

Issue Hey guys I am getting a ‘invalid syntax’ popping up and it highlights the ‘?’ in my code. The ? is the meta character for the lookahead function but I don’t know why it is not working. Here is

## CodeRay style messed up – how to fix

Issue I’m trying to use CodeRay in my project and it seems to be working, however the style and formatting seems to be messed: Note that I’m using CodeRay in conjunction with Markdown (Redcarpet). I’ve added both gems in my

## Eclipse: Turn on syntax-highlighting for Classes and Objects

Issue Is there any possibility to turn on the highlighting for Classes and Objects in Eclipse like it is in Visual Studio? At the moment only the Variable names are highlighted. Left: Eclipse, Right: Visual Studio 2012 Image: (http://image-uploader.de/bild.php/9468,unbenanntHU9EZ.jpg) Solution

## Colorful shell for Haskell on Windows?

Issue I’m learning about haskell from this tutorial site. As you can see, the console in the pictures have colors, to make writing easier, and more readable. Is there any way to make the ghci colorful on windows. I ask

## How to make a simple example with highlight.js?

Issue I am trying to make a simple example with highlight.js but I can not make it work. I am not familiar with highlight.js. Here is my code and I dont know what`s wrong in it. Any idea! Thanks in

## Vim highlight a list of words

Issue I need to highlight a list of words in vim, preferably the words should be defined in a file. A bit like spell checking. I have been looking at http://vim.wikia.com/wiki/Highlight_multiple_words but it requires that I define each word as

## How do I get HTML syntax highlighting inside PHP strings & heredoc syntax?

Issue I’m using Sublime Text with the Pastels on Dark theme. My language of choice is PHP. How can I get HTML syntax highlighting inside PHP strings & heredoc syntax? Solution Name your heredocs after the language you are using.

## Fenced code blocks in Jekyll with kramdown?

Issue I have a GitHub Pages site, built with Jekyll, on which I want to add code highlighting. When I try to use fenced code blocks, they are not rendered locally, but they work fine on the live GitHub site.

## emacs font-lock-mode for JavaScript: would like to highlight 'self' just like 'this'

Issue Because I often have to preserve this from getting overwritten in closures, I like to do: var self = this; at the top of my constructors. I’d like to subsequently highlight self exactly how and when this is currently

## Add TODO word highlighting to atom editor

Issue In atom some special words such as TODO, FIXME, IDEA, NOTE, … are automatically highlighted in comments inside code. I want to add some words to this list, how can I do? Solution All of the words you have

## Syntax highlighting for .sage in sublime

Issue I started to write some code for sagemath having extension .sage. I write those on sublime text editor. However there is no syntax highlighting for .sage documents. Sage is mostly based on Python. So is there any way that

## Highlight Build Output Panel of Sublime Text 2

Issue How do I highlight the error lines in the Build Output Panel of Sublime Text 2? I have some lines in the output like this: This is just a message Warning: <C:\Path\File.ext:12> WarningMessage ORANGE Error : <C:\Path\File.ext:34> ErrorMessage RED

## How to preview code attachments in Outlook?

Issue I frequently sent or receive mail with source code attachments (.c, .cpp, .h, .js, etc). It would be easier if I could preview these files in Outlook, so I do not need to open in another application. Preferably, the

## Ignore specific characters in syntax matching

Issue I’m writing a vim syntax highlighting file for a specific language. For some keywords, specific characters are ignored (, and -and _). In other words, these are exactly the same: foo f_oo f-o,o Is there a way I can

## Textmate: All text within begin and end capture is not colored/matched

Issue So I’m able to match/color {{#if media.isMobile}} and it’s end tag {{/if}}. But everything in between the blocks is just regular text now (Before it had nice html coloring). So how do I get the content inbetween the captures

## Jekyll: kramdown ignoring input in _config.yml

Issue I am trying to make syntax highlighting on my jekyll site work with the syntax for syntax highlighting that is also supported by github. Currently, I use this syntax to highlight my code: {% highlight css %} /* code

Issue I just wanted to change the coloring settings for the Java language a little bit. So can I kinda export the Java language just to import it again? So I can change some things and save it then as

## Eclipse syntax coloring plugin

Issue I need to develop an Eclipse plugin that can “color” the same occurrence of a variable/value/tag in XML as the JAVA editor does. I’m using the default XML Editor from eclipse, and am currently able to put a grey

## How to allow code-folding on Geany IDE?

Issue Is there any way to fold all of functions at one time on Geany IDE? Is there any way to do that? I am looking for any option which let my Geany IDE to fold all of the functions

## Can I use both Python and SQL syntax highlighting in the same file in Vim?

Issue I use multiline strings for SQL queries inside Python programs. Is there a way to tell Vim to apply different highlighting rules inside them, possibly by using a –SQL marker? Solution I copy-pasted-changed from here: function! TextEnableCodeSnip(filetype,start,end,textSnipHl) abort let

## How do I mark text bold inside an already matched region in VIM syntax highlighting?

Issue Given something like: This is \f random text \b and more \f* and then some more. I want to make \f up until \f* grey I want the “tags” as bold (so they are grey but also become bold)

## Highlight function calls but not first in quoted list in emacs

Issue In emacs lisp mode, I want to highlight all function calls one color, and all quoted symbols another color. For example, in (foo 1 2 ‘bar), foo should be highlighted color 1 and ‘bar should be highlighted color 2.

## Unable to make custom syntax highlighting work in TextMate

Issue I am trying to highlight a custom language in TextMate. However, the following definition does not highlight PHP insertions (I do select it for my *.serpent files): { scopeName = ‘source.serpent’; fileTypes = ( ‘serpent’ ); patterns = (

## Getting the list of available languages

Issue How can I get the list of available languages (the short symbol to be passed when calling a method that represents the language) for CodeRay syntax highlighter? I tried require “coderay” CodeRay::Scanners.constants but that doesn’t seem to give the

## Source Control Server on Windows With Custom Highlighting Support

Issue We have an old language we use to write scripts on our optimization software at work (Called MoDL if anybody is familiar w/ it). At the moment we’re trying to have some kind of source control set up between

## Pandoc Syntax Highlighting in PDF not working

Issue pandoc –version yields: pandoc 1.12.2.1 Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1. Syntax highlighting is supported for the following languages: actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry,