syntax-highlighting

Create Visual Studio Theme Specific Syntax Highlighting

杀马特。学长 韩版系。学妹 提交于 2019-12-04 03:27:52
I would like to create a Syntax Highlighter in Visual Studio 2012 (and above) that supports different themes (Dark, Light, Blue). Visual Studio's Editor Classifier project template explains how to create your own colors in the environment using Microsoft.VisualStudio.Text.Classification.ClassificationFormatDefinition . It works fine... ... until you realize that there are different themes in Visual Studio 2012 (and above) and you don't really support them. Your pretty dark blue colored identifiers on the light theme becomes unreadable in a dark themed environment. To my understanding if you

Adding Resharper code annotation to own code in a non-invasive manner

白昼怎懂夜的黑 提交于 2019-12-04 03:16:05
I want to flag one of my methods with the StringFormatMethod attribute so Resharper syntax highlights it. I was able to do this by referencing the JerBrains.Annotations assembly and adding the attribute. However I find this to be a very invasive way to do this. Not everybody here uses JetBrains and it will require committing the .dll to subversion, adding the dependency and littering the code with something that is specific to a particular IDE, which I hate. I read about the "external annotations" feature, but I wasn't able to do it. I'm not sure if I did it wrong or if it's simply not

How can I highlight elements that match a regex in CKeditor?

好久不见. 提交于 2019-12-04 02:23:43
I want to be able to highlight (i.e. wrap in a span with a color, or some other way) all text that matches a regex in CKEditor. I'd probably add a button to do this, and a button to remove highlighting. My specific use case is to highlight all mustache variables in my HTML templates (make it really easy to see where there are mustache variables). I've implemented a version where I replace a regex matching mustaches with a span and then the capture group. This appears to break on some templates when I test. To remove the highlighting, I use editor.removeStyle, which doesn't seem to work in all

Syntax-highlighting textbox for Winforms, ASP.NET, WPF

百般思念 提交于 2019-12-04 02:22:18
I'm looking for a syntax-highlighting Textbox component, preferably free, with source, and capable of being used in Winforms, ASP.NET and WPF alike. Also, it should support not just display, but also editing contents. I've discovered the excellent, FREE ActiPro SyntaxHighlighter for ASP.NET but that's unfortunately ONLY for ASP.NET and it only displays text in syntax highlighted manner, it has no editing capabilities..... I also know of the ICSharp Text Editor component that's part of SharpDevelop but that's then a standalone, but Winforms only, solution. Does anyone know of a component that

How to change color of HAML tags in NetBeans?

荒凉一梦 提交于 2019-12-04 02:09:39
问题 I use Aloha theme in NetBeans 6.8, everything looks cool except these blue tags in HAML files, which are unreadable. How to find a place where this blue color could be changed? P.S. I use that HAML plugin which seems to be unsupported and lacks features Screenshot: http://img.leprosorium.com/846904 (sorry, new users can't embed images) 回答1: Lots of people would DIE for a decent Netbeans HAML plugin. I suggest that we just PAY for someone to write it : http://www.cofundos.org/project.php?id

Sphinx inline code highlight

北城以北 提交于 2019-12-04 02:07:10
I use Sphinx to make a website that contains code samples. I'm successful using the .. code-block directive to get syntax highlighting. But I can't get inline syntax highlighting using this code: .. role:: bash(code) :language: bash Test inline: :bash:`export FOO="bar"`. .. code-block:: bash export FOO="bar" which produces this output i.e. inline code not highlighted while block code is: Problem to me is that the generated HTML for inline code contains long class names while it does not for code blocks. Here is the output HTML (indented for readability): <p>Test inline: <tt class="code bash

Razor .cshtml syntax highlighting for vim?

本小妞迷上赌 提交于 2019-12-04 00:49:25
I'm looking for a .cshtml vim syntax file. Are there any projects that haven't made it to www.vim.org? ":setf html" solves the 80% part :) this guy has razor support planned, but is not yet there. However, it does add some features to the existing c# support. https://github.com/OrangeT/vim-csharp You can find nice vim-razor plugin in https://github.com/adamclerk/vim-razor $ cd ~/.vim/bundle $ git clone https://github.com/adamclerk/vim-razor Settled with adding this to .vimrc " add html syntax to dotnet razor files autocmd BufNewFile,BufRead *.cshtml set syntax=html Russ Martinez (or maybe

Set my own syntax in Sublime Text

蹲街弑〆低调 提交于 2019-12-03 22:48:05
问题 Sometimes I use Sublime Text for writing reminders. I always use the same layout for this task which looks like this : >Title >>Subtitle >>>Comment > Title >> ... Where a > represent a tab character So I'm wondering if it's possible to create my own syntax highlighting for this kinds of files, with one color for the title, another one for the subtitle and the regular color for the comment. 回答1: Syntax highlighting is performed using .tmLanguage syntax definitions. They are formatted in Apple

Syntax highlighting library written in C/C++ [closed]

穿精又带淫゛_ 提交于 2019-12-03 20:55:55
问题 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 am looking for a free (for commercial use) library for syntax coloring written in c/c++. Are there any out there? 回答1: I am not sure if you are looking for something to color an existing control or a control with text coloring built in. If you are looking for the later you could check out Scintilla. Scintilla

Pandoc Syntax Highlighting in PDF not working

倾然丶 夕夏残阳落幕 提交于 2019-12-03 20:23:37
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, d, diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang, fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc, javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell, lua, makefile, mandoc, markdown, matlab, maxima, metafont, mips,