syntax-highlighting

How do I edit the Solarized (Light) theme in Sublime Text 3

拜拜、爱过 提交于 2019-11-26 23:52:18
问题 I am trying to edit some of the syntax colours in Sublime Text 3. I'm using the Solarized (Light) built in colour scheme but I only want to change a few of the colours. Where is the settings file (on a Mac)? 回答1: I'd recommend using PackageResourceViewer to open the file. You could make your modifications there, and it would save in the proper location to override the built in files. However, I would recommend copying the contents of the file and creating a custom version in your User folder.

How to customise file type to syntax associations in Sublime Text?

给你一囗甜甜゛ 提交于 2019-11-26 23:27:44
I'd like Sublime 2 editor to treat *.sbt files (to highlight syntax) as Scala language, same as *.scala, but I can't find where to set this up. Do you happen to know? TedG In Sublime Text (confirmed in both v2.x and v3.x) there is a menu command: View -> Syntax -> Open all with current extension as ... I've found the answer (by further examining the Sublime 2 config files structure): I was to open ~/.config/sublime-text-2/Packages/Scala/Scala.tmLanguage And edit it to add sbt (the extension of files I want to be opened as Scala code files) to the array after the fileTypes key: <dict> <key

Syntax Highlighter for Java

我是研究僧i 提交于 2019-11-26 20:48:07
问题 As you know there is a Syntax highlighter for PHP called GeSHi which supports a great number of Programming Languages or Code formats. However, I couldn't find such a library for Java which supports programming languages that I need (ADA, ASP, BNF, Bash, Brainfuck, C, C++, C#, CSS, Cobol, ColdFusion, D, Fortran, Haskell, HTML, INI (Config), Java, JavaScript, Lisp, Make, Objective C, PASCAL, Perl, PHP, PLSQL, Prolog, Python, Ruby, Scheme, SQL, VB.NET, Verilog, VHDL, Visual Basic, XML.) Do you

Visual Studio thinks `Microsoft Web Developer Tools` is installed

橙三吉。 提交于 2019-11-26 20:36:26
问题 Symptoms Visual Studio syntax highlighter and Intellisense for Javascript and Razor views are not working. There is no Web templates installed when creating a new project. When I try to uninstall the web developer feature: Add or remove Programs > Microsoft Visual Studio Professional 2015 > Modify Microsoft Web Developer Tools is always checked. Even when I uncheck it and uninstall it, then restart the computer; the next time I still see it's checked: What I did to solve this: Running devenv

How to highlight source code in HTML? [closed]

我与影子孤独终老i 提交于 2019-11-26 19:44:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to highlight C/C++/Java/C# etc source codes in my website. How can I do this? Is it a CPU intensive job to highlight the source code? 回答1: You can either do this server-side or client-side. It's not very processor intensive, but if you do it client side (using Javascript) there will be a noticeable lag.

xcode code sense color/completion not working

China☆狼群 提交于 2019-11-26 19:33:33
EDIT: This is weird... if I double-click the Recent Projects item for the project in the welcome screen, code sense and coloring works just fine but if I just click Open (bottom right in welcome screen) it doesn't. Opening from File > Recent projects does not work either and neither does double-clicking the .xcodeproj file in Finder. Code sense for an iPhone OS 3.0 project I have been working on for several months (through different installations/versions of XCode) is not working any more. For instance, if I do NSString *myString , all code would be black (no coloring, no Option + Double Click

Is Crockford style Context Coloring implemented in any code editor?

╄→尐↘猪︶ㄣ 提交于 2019-11-26 18:56:16
问题 I watched a video from YUIConf 2012 in which Douglas Crockford gives a talk about implementing monads in JavaScript. In this talk he gives a code example that utilizes what he calls "Context Coloring" which throws out the idea of coloring by language syntax and introduces different colors for different levels of scope. Here is the link to that specific part of the video. http://www.youtube.com/watch?feature=player_embedded&v=dkZFtimgAcM#t=15m58s Is this context coloring scheme implemented by

Where can I find a list of all possible keys for tm-themes for syntax highlighting?

我的梦境 提交于 2019-11-26 18:32:45
问题 In the tmTheme file for my current text editor theme there are a number of options, including the ones in the code below. Is there a list somewhere that defines all possible tags that could be included in this list (eg. background , inactiveSelection , findHighlight , etc)? <dict> <key>background</key> <string>#1a1a1a</string> <key>caret</key> <string>#B6ECF9AF</string> <key>foreground</key> <string>#ecf0f1</string> <key>invisibles</key> <string>#F3FFB51A</string> <key>lineHighlight</key>

Get X and Y coordinates of a word in UITextView

主宰稳场 提交于 2019-11-26 18:16:07
问题 I asked a developer (TwoLivesLeft, the creators of Codea) how they did syntax highlighting in their app. He replied : @TD2 the Codea editor is implemented using a UITextView. The highlighting is done by overlaying subviews in the appropriate positions — usually UILabels. They are dequeued from a re-use pool, similar to the way UITableViewCells work. During scrolling, the lines requiring re-highlighting pull markers out of the pool and lines that have moved off screen dump their markers back

SublimeText encloses lines in white rectangles

血红的双手。 提交于 2019-11-26 17:56:11
问题 It's rather annoying and I can't seem to figure out why. 回答1: Looks like you have SublimeLinter installed. It highlights errors and warnings. 回答2: If you still have a problem with those solutions suggested above (with anaconda lint): Disable linting altogether within the user-defined Anaconda settings file, Anaconda.sublime-settings, via the file menu: Sublime > Preferences > Package Settings > Anaconda > Settings – User: When it opens file, just type the following and save it away ;-) {