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
2
votes
0 answers

Partial TypeScript Syntax highlighting in VS2015 compared to VSCode

How do I get the same syntax highlighting for TypeScript in VS2015 as Visual Studio code? I noticed partial syntax highlighting as compared to VSCode I'm running VS2015 Update 3 and VSCode 1.8.1 Thank you ahead of time !
2
votes
2 answers

How can I get Vim HTML syntax highlighting to colour the whole tag?

As a PhpStorm user, one of the disappointing things I come across when I try using Vim is the way it does syntax highlighting in HTML: Vim colours just the tagname and attributes,leaving the <, / and > in a different colour. What's the point of…
And Finally
  • 5,602
  • 14
  • 70
  • 110
2
votes
1 answer

Looking for an updated Visual Studio 2010 Yaml syntax highlighting

I have to work a lot with the flexible file format Yaml, i like its human readability but still I look for a support in Visual Studio 2010. Before I used this .NET based solution Yaml on Codeplex, it worked fairly ok despite some quirks but it does…
Sebastian
  • 6,293
  • 6
  • 34
  • 47
2
votes
1 answer

How to use different syntax for same file extension on Sublime Text? (JS/JSX)

With Sublime Text, is it possible to use different syntax for a same file extension depending on the currently opened project ? Example : Project A : file.js contains classic Javascript Project B : file.js contains JSX How can I obtain JavaScript…
saawsann
  • 625
  • 1
  • 6
  • 17
2
votes
3 answers

How to change the color of Preprocessor Conditionals such as #if in Vistual Studio?

Is there a method to change the color of Preprocessor Conditionals such as, #if #ifdef #ifndef #endif I do work on large C libraries which use plenty of Preprocessor Conditionals and as you can see in the example below, this really limits the…
Mehrad
  • 4,093
  • 4
  • 43
  • 61
2
votes
1 answer

C++14 Syntax in Eclipse CDT compiles but marked as syntax error (indexer)

Eclipse CDT gives me a syntax error for a valid C++14 syntax. Everything compiles and runs but the syntax highlighting is broken. I have MinGW and Eclipse running. The C++14 program compiles and executes but I get incorrect syntax highlighting /…
Johannes
  • 6,490
  • 10
  • 59
  • 108
2
votes
0 answers

Configure resharper/visual studio to highlight specific parts of a strings in javascript files (like in string.format of C#)

In javascript we have a utility method called stringFormat which works as such: stringFormat("Some template {0}.", someNumber); Is there any way to tweak resharper so that {0} gets highlighted in the same fashion that resharper (or visual studio in…
XDS
  • 3,786
  • 2
  • 36
  • 56
2
votes
1 answer

Roslyn: enumerate exact token + trivia spans on a single source line?

I am looking to efficiently implement the following method: IEnumerable GetSyntaxHighlightedSpansOnLine(int lineNumber); I have a Document, SourceText, SyntaxTree et al. Assume ColoredSpan is a tuple of some color and string (or other…
El Zorko
  • 3,349
  • 2
  • 26
  • 34
2
votes
1 answer

WebStorm highlighting for multi-line strings

I am following the Angular 2 tutorial off of the docs and have added a couple multi-line strings which are causing terrible syntax highlighting problems in WebStorm. The syntax highlighting issues I am talking about are the green shaded parts that…
httpNick
  • 2,524
  • 1
  • 22
  • 34
2
votes
0 answers

Cloud9 Custom Syntax Color Theme

Many are switching to Cloud9 IDE from other IDEs, and I did. But I miss syntax color schemes I had. Luckily, Cloud9 allows loading custom themes. https://cloud9-sdk.readme.io/v0.1/docs/themes Could someone create or share step by step, easy to…
2
votes
2 answers

Regular Expression: Simple Syntax Highlighting (Python)

I have been struggling with creating a regular expression that will differentiate between an object definition and calling that object in Python. The purpose is syntax highlighting. This is the situation which needs to be resolved: (numbers denote…
xitiru
  • 31
  • 3
2
votes
1 answer

PHP's HERE Doc (EOT) syntax highlighting discrepancy with forward slash on Sublime Text 3

I am unfamiliar with how Sublime Text 3 uses syntax highlighting, as in, if it purely relies on the theme or has it's built in standard that themes run off of but in my case, there's some syntax highlighting discrepancy with using PHP's HERE docs…
l3fty
  • 572
  • 3
  • 16
2
votes
1 answer

Calling a JS library in my Content Script - WebExtension

I have a webextension, firefox but I think this applies to chrome as well, which executes (chrome.tabs.executeScript, called in the background.js) a content script on a browserAction.onClicked listener. This content script more or less creates an…
2
votes
0 answers

Visual Studio Code: How to change color of '->' and '.' operators in C?

I'm trying out VS Code, but I would like to use my Sublime color settings. I've used the 'yo code' tool as suggested by the installation instructions to import the settings as TextMate. This worked mostly, however I cannot figure out how to change…
2
votes
1 answer

How to install a bison/flex syntax highlighter?

for my flex and bison files I am looking for a syntax highlighter. I am trying to get this to run: http://ccode.tistory.com/77 : I downloaded the .jar file and followed the instructions File/import Adding jars to a Eclipse PlugIn But nothing…
j35t3r
  • 1,254
  • 2
  • 19
  • 53