syntax-highlighting

Custom syntax highlighting for VS 2008

a 夏天 提交于 2019-11-28 21:16:23
问题 I've been using John Lam's Vibrant Ink VS color scheme lately and wanted to tweak it so it highlights the method names for a class with a different color. Turns out there is no option in VS for that. Resharper has a feature that provides custom syntax highlighting. I was wondering how hard is it to write a little plugin that gives you granular custom syntax highlighting? Are there any open source ad-ins like that out there? EDIT Thanks all, I managed to hack stuff up using DXCore and my VS is

braces and operators coloring in vim for c++?

情到浓时终转凉″ 提交于 2019-11-28 20:48:43
I want to customize a syntax coloring in vim for c++. But, unfortunately, i still can't find a correct name for braces (){}[] and operators +-/*% for c/c++/objc/objcpp. Any vim guru whi can suggest what name i must 'hi' in order to set color for items mentioned? DrAl I believe that there is no default highlighting for braces as standard in vim for C code or derivative languages (they're just highlighted as plain text). You could define your own, using something like: :syn match Braces display '[{}()\[\]]' :hi Braces guifg=red or you could download the rainbow brace highlighting plugin , which

Copy syntax-coloured code block as rtf in intelliji IDEA?

空扰寡人 提交于 2019-11-28 20:20:23
Is there a simple way to copy syntax-coloured code block as rtf in intellij IDEA? UPDATE : there is now a new plug-in for this: 'Copy' on steroids that is maintained by JetBrains. There is no way to copy colored code block from IDEA directly. A workaround is to use File | Export to HTML , then open HTML in a browser, then copy from the browser window and paste into Wordpad or MS Word. Another and more faster way is to install the Copy as HTML plug-in in Settings | Plugins : Copies a snippet of code as html Adds menu items "Copy as HTML" to main menu and editor popup. Will copy the current

Syntax highlighting within #+begin_src block in emacs orgmode not working

假如想象 提交于 2019-11-28 19:40:14
问题 I have tried many different languages and copied various examples, but none of my code blocks within orgmode get syntax highlighting. Here is what I'm trying: #+begin_src python def main(): print "Hello %s" % ("what's the problem") #+end_src #+begin_src c++ for (int i = 0; i < 30; i++) { cout << "Hello" << endl; } #+end_src When exported to HTML, it shows up in a source code block, but with no highlighting there either. I am using the newest org (7.8.10). Am I missing something here? 回答1: Do

Syntax Highlighting in Cocoa TextView? Experiences? Suggestions? Ideas? [duplicate]

℡╲_俬逩灬. 提交于 2019-11-28 19:22:05
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Syntax coloring for Cocoa app I'm interested in syntax highlighting in a Cocoa TextView. I found several resources: approach with flex, via a flex pattern matched against textStorageDidProcessEditing in a TextView delegate. In this approach the whole string get parsed on each input event, hence performance degrades. CocoaDev has an own page on the topic of syntax highlighting: Use

Add syntax highlighting to gh-pages

天大地大妈咪最大 提交于 2019-11-28 19:11:24
Is there an easy way to add syntax highlighting to my various plugin's gh-pages using github's Pygments? I know that every page runs through the Jekyll engine and provides syntax highlighting ( ref ). But I don't want to install a blog. I just want syntax highlighting applied to the code blocks in my gh-pages. I guess I could always just include a different plugin with my gh-pages... Pages already does pygments, there's nothing to install. Just use it! --- layout: default title: Something with codes --- Happy fun highlighting. [More details](https://github.com/mojombo/jekyll/wiki/liquid

How to Syntax Highlight in a RichTextBox [C#]?

☆樱花仙子☆ 提交于 2019-11-28 18:50:13
How do I syntax highlight in a richtextbox control AS THE USER TYPES and USING A String[] keywords . I will be publishing a lightweight notepad to the web soon and I want it to have syntax highlighting. I am using Windows forms. Can someone post a code example? Sam Harwell RichTextBox syntax highlighting (talks about RichTextBox itself - minimal features but exactly what you asked for here) A textbox/richtextbox that has syntax highlighting? [C#] (talks mostly about other ways of doing it) The Scintilla control is an excellent source code editor that includes syntax highlighting amongst a

Eclipse highlighting the same occurrence of the word [closed]

南楼画角 提交于 2019-11-28 18:32:37
In Notepad++ , it has a very nice feature that if I select a word , it will highlight all the same words throughout the text . Added to this , I can set the hot-keys to highlight up to five different words with different styles (See the effect below) . Is there any ways /plug-ins to get this similar effect in eclipse ? I know when editing Java , it will highlight all the same variables ,but it will not work when I highlight the comments and editing other files type (e.g. xml, html, js, css and etc). I've been working with Eclipse for quite a while and I'm pretty certain that there is no

How to syntax highlight inline R code in R Markdown?

本秂侑毒 提交于 2019-11-28 18:26:28
This question is similar to consistent code html inline and in chunks with knitr . Instead of .Rhtml documents, I want to highlight inline R code in R Markdown documents, e.g., after `r "plot(cars, main = 'A scatterplot.')"` is compiled through rmarkdown , the tokens like plot should be highlighted. By default, R code chunks are syntax highlighted, but there is no way to highlight inline R code. Here is one solution using the development version of the highr package ( devtools::install_github('yihui/highr') ). Basically you just define your custom LaTeX commands to highlight the tokens. highr:

Are there any JavaScript live syntax highlighters? [closed]

南笙酒味 提交于 2019-11-28 18:02:41
I've found syntax highlighters that highlight pre-existing code, but I'd like to do it as you type with a WYSIWYG-style editor. I don't need auto-completed functions, just the highlighting. As a follow-up question, what is the WYSIWYG editor that stackoverflow uses? Edit: Thanks to the answer below, I found two that look like they might suit my needs: EditArea and CodePress EDIT: See this question also: https://stackoverflow.com/questions/379185/free-syntax-highlighting-editor-control-in-javascript Here is a really interesting article about how to write one: (Even better, he gives the full