syntax-highlighting

Visual Studio 2015 RTM - Lost JavaScript support after update TypeScript Tools

不打扰是莪最后的温柔 提交于 2019-11-27 04:59:55
I have lost the support for JavaScript files inside Visual Studio 2015 after updating the TypeScript tools from version 1.5.3 to 1.5.4. By support for JavaScript I mean intellisense, syntax coloring and the JavaScript options inside Options menu -> Text Editor. My js files look like txt files now. I have already tried many things: The steps in this answer: Visual Studio 2015 CTP - Javascript support missing Repair TypeScript Tools Repair Microsoft Asp.Net and Web Tools 2015 Repair entire Visual Studio 2015 Nothing worked. Does anyone knows a solution for this problem? Michael Braude This is a

How can I create a custom Eclipse Syntax Highlighter

天涯浪子 提交于 2019-11-27 03:55:58
I've been developing a compiler for a new language. I thought it would be neat to be able to demonstrate its development in a syntax aware environment. The language has quite a few custom keywords, and its structure is significantly different than common languages such as Java or C/C++. How can I develop a custom syntax highligher for Eclipse? I've seen some references to a few plugins, but the documentation is not thorough enough for my beginner's needs. I have a grammar/REs for my language, as well as lists of relevant keywords. Uri The Eclipse framework uses a fairly complex document model

HTML syntax highlighting in javascript strings in vim

≡放荡痞女 提交于 2019-11-27 03:35:39
问题 I don't know if this is possible/sensible, but I was curious to know if I can have my strings in javascript files have html highlighting. I discovered that strings in php could have SQL syntax highlighting, so I believe it is possible. But, I don't know vim-scripting, so any help on this appreciated. I am using the Better Javascript syntax. PS: If there could be an option to turn it on and off while editing a js file, that would be wonderful Thanks 回答1: Yes, it's possible if you don't mind

What code highlighting libs are there for Java?

女生的网名这么多〃 提交于 2019-11-27 03:22:25
问题 I'd like them to be easy to bundle, with few dependencies and easy to use. 回答1: 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) for xml and http://code.google.com/p/syntaxhighlighter/ (js lib) for other stuff. The latter has something called 'brushes' which are "pluggable" .js for several langauges. If you are doing simple highlighting, I recommend the ,js approach. 回答2: http://sourceforge.net

class & function names highlighting in Vim

独自空忆成欢 提交于 2019-11-27 02:34:56
I just recently set up my Vim environment from Textmate, after becoming addicted to its modal input. However, syntax highlighting seems to be not so beautiful in Vim. I code in C++ and since the function call and class names can't be highlighted, the code is more difficult to read. I played with color scheme for a bit, but couldn't find any field that corresponded to "class name" or "function name". In the picture below, notice how DroughtLayer:: and *.size() is not highlighted on the right in MacVim. (source: ivzhao.com ) Any ideas how to solve this? It really annoys me as I am so much a

Dynamically update syntax highlighting mode rules for the Ace Editor

懵懂的女人 提交于 2019-11-27 01:46:38
问题 Totally new to ace editor dev, to dynamically add additional rules to a mode file for syntax highlighting I'm doing an ajax call that sets a global variable that is available inside the mode file to process. Here is the setup and initial ajax call: var editor = ace.edit("editor"); $.ajax({ url: "json-mode-rules.php", dataType: "json" }).done(function(data) { window.myModeRules=data; // ("foo","bar","etc") editor.getSession().setMode("ace/mode/python"); }); The mode file is patched with the

Vim syntax coloring: How do I highlight long lines only?

时间秒杀一切 提交于 2019-11-27 01:41:06
问题 I would like vim to color "long" lines for me. Using 80 columns as an example, I would like to highlight lines that exceed that length. Here is roughly what I think the .vimrc file should contain, although it (1) doesn't work, and (2) uses Perl's regex syntax to illustrate my point, because I don't know Vim's well enough: ... highlight Excess ctermbg=0 au Syntax * syn match Excess /.{80,}$/ ... This (in my mind at least) should mark lines that exceed 80 columns. What I would ideally like is

Extending language definitions (for code highlighting) in notepad++

心已入冬 提交于 2019-11-27 01:31:22
问题 I've been doing development in TWIG lately. It is an html templating language that is very simple and robust. I've set notepad++ to automatically treat .twig files as html. This is ok, but I don't get any syntax highlighting on my twig functions. The twig syntax is incredibly simple (by design) and would be easy to add to notepad++. The problem is, everything I find on this subject is either about creating a new language definition (and I do not want to reinvent the html definition), or

Autocompletion in ACE editor

回眸只為那壹抹淺笑 提交于 2019-11-27 00:21:34
问题 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 it for Cloud9". This post is one year old and as you can see, the cloud9 supports autocompletion now: https://c9.io/site/features/ So is autocompletion available in Ace Editor by default? I cannot find any information about it. 回答1: Autocomplete is now

Change / Add syntax highlighting for a language in Sublime 2/3

血红的双手。 提交于 2019-11-27 00:01:05
问题 I want to change / add syntax highlighting for a language in Sublime 2/3. For example I want the keyword this colored in JavaScript. How can I do that? I know that there is a preference JavaScript File in C:\Program Files\Sublime Text 3\Packages , but I don't know what to change or if I have to create a new JavaScript Preference File somewhere in this folder %APPDATA%\Sublime Text 3 . 回答1: Syntax highlighting is controlled by the theme you use, accessible through Preferences -> Color Scheme .