syntax-highlighting

Silverlight XML editor / syntax highlighting

此生再无相见时 提交于 2019-11-29 02:17:47
I am looking for a Silverlight text editor control that provides XML syntax highlighting . I found a few answers in Winforms or WPF , like here on Stackoverflow , but I didn't manage to convert them to Silverlight. The fact that Silverlight is missing System.Drawing is probably a big problem. The only text editor I found for Silverlight is RichTextEdit on Codeplex , but I don't think it is a suitable base for real-time syntax highlighting. Has anyone heard of such a control, or can provide hints on how to build one? Many thanks, Romain I finally found that control I was looking for!

Vim highlight a list of words

Deadly 提交于 2019-11-29 02:17:41
问题 I need to highlight a list of words in vim, preferably the words should be defined in a file. A bit like spell checking. I have been looking at http://vim.wikia.com/wiki/Highlight_multiple_words but it requires that I define each word as a new position and does not support storing the words to a file (though they are storable). 回答1: You could use the :match command. :match Todo /word1/ The first parameter of the command is the highlight-group (to see all available groups :highlight ). The

How to make IntelliJ IDEA recognise code created by macros?

不打扰是莪最后的温柔 提交于 2019-11-29 02:09:15
问题 Background I have an sbt-managed Scala project that uses the usual sbt project layout for Scala projects with macros, i.e., a subproject that contains the macros a main project that is the actual application and that depends on the macro subproject. The macros are macro annotations which, in essence, generate companion objects for regular classes. The generated companion objects declare, amongst other members, apply/unapply methods. I used the sbt-idea plugin to generate a corresponding

How to customize the color of custom syntax tokens in VSCode extension

徘徊边缘 提交于 2019-11-29 01:30:36
问题 TLDR; How can I have an extension colorize the syntax the extension is defining without it actually being a color theme the user has to enable? I'm attempting to port this Sublime Text plugin (ToDone) to VSCode. It creates a grammar for todo lists and then uses syntax highlighting to emphasize important tasks, mute completed tasks, etc. I found "editor.tokenColorCustomizations" , via Customize a Color Theme. It works with the new syntax when I use it in my user settings, but fails when I use

Is there a command line C++ to PDF converter with syntax highlighting? [closed]

别来无恙 提交于 2019-11-29 01:04:00
问题 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 last year . I need to supply "Source code documents w/ Line numbers" which is essentially just a PDF of the source code with syntax highlighting and Line numbers. Is there any existing command line tools for windows that I could call from a script as a "build release version" script? Right now I'm doing it manually using VC++

Notepad++ Custom Language Highlighting

可紊 提交于 2019-11-29 00:31:32
问题 I have a specific language (its private, and closed source) that I'm writing code highlighting for in Notepad++. I've never done anything like this before... so, for the most part, I'm clueless. There are a bunch of keywords, and I've figured out how to implement those, but the strings are denoted by square brackets ( [ and ] ) instead of normal quotes. How do I register those as strings in the XML file? Another thing, the language relies heavily on recursion and nesting; is there some way to

Django templates syntax highlighting in Eclipse

断了今生、忘了曾经 提交于 2019-11-28 23:57:38
问题 I use Eclipse and pydev for django development. This has worked more or less ok, including debugging. Syntax highlighting doesn't seem to work everywhere though. I couldn't get any highlighting for the templates thought. Is there a way to get the highlighting and code suggestions for the templates? 回答1: The latest PyDev versions include a Django template editor, but it's not compatible with vanilla Eclipse. You have to use Aptana Studio instead. Just use http://pydev.org/nightly as update URL

Syntax coloring for Cocoa app

两盒软妹~` 提交于 2019-11-28 23:31:28
问题 I'm planning to do a Cocoa app that requires code syntax to be colored (in all common languages). Instead of writing my own code highlighter/parser, are there any pre-made solutions available? Thanks 回答1: You might be able to use something like Geshi, but there're also the resources listed here: http://www.cocoadev.com/index.pl?SyntaxHighlighting Edit More links: Syntax Highlighting in Cocoa TextView? Experiences? Suggestions? Ideas? http://parsekit.com/okudakit/ 回答2: An excellent solution is

VS 2015: No highlighting and intellisense in JS files

对着背影说爱祢 提交于 2019-11-28 22:36:29
问题 I can't really reproduce the issue, but no highlighting or intellisense is working in .js files, it works just fine in .json files however. The default editor for .js files is JSON Editor. I tried safe-mode, disabling all extensions, resetting all settings, and I even reinstalled the IDE (repair), but the issue still persists. I will add, that when I launch the IDE and a JS file is open on scope, I get the following error message (highlighting and intellisense don't work anyway): The

Trouble using Vim's syn-include and syn-region to embed syntax highlighting

ε祈祈猫儿з 提交于 2019-11-28 21:31:59
问题 I am trying to get Vim to syntax highlight any file that ends with extension .Rtex in the following way: All top level text is highlighted as TeX Exception: any text enclosed in \begin{python}...\end{python} is highlighted as Python I am able to achieve each of these criteria individually, but unable to achieve both simultaneously. I think that somehow the TeX highlighting overrides my Python-highlighted regions, or prevents them from taking effect, and I am stuck trying to figure out how.