syntax-highlighting

Add Syntax Highlighting to IElisonBuffer

假装没事ソ 提交于 2019-12-02 06:25:01
问题 I'm working on a project where we've split up C# code into functions and stored these functions within IElisonBuffers. I've got Intellisense hooked up, and the buffers interact with other extensions fine as shown below: However, I cannot get syntax highlighting to work within these editors. I embed these editors via the following steps: Create an IVsInvisibleEditor for the file. Get the IVsTextLines for this IVsInvisibleEditor Create an IVsCodeWindow and set the buffer for this IVsCodeWindow

How to detect multiline paste in RichTextBox

会有一股神秘感。 提交于 2019-12-02 02:49:37
At the moment I'm working on a simple syntax highlighter and I have couple of problems. Could you help me out? I have a class library with a component class in it. Everything is in VB.NET. It's only one file so you can see it here https://gist.github.com/2366507 . On line 92, there is the OnTextChanged Sub. I was thinking about adding ProcessAllLines() (as on line 128) to the end of that Sub, and it worked. However when I was typing in code to the RichTextBox (source which I used is here https://gist.github.com/2366526 ) after each text change it was checking and processing ALL the lines. So I

Problems with Xcode Syntax Highlighting

六眼飞鱼酱① 提交于 2019-12-02 00:08:45
In Xcode 3.2.1 I have this problem where it stops highlighting Objects in purple, and such. For example: In that example, NSAutoreleasePool, pool, img, size, width and height should be highlighted, however, they are not. Here is a screenshot of what that looks like. Anyone know how to fix this? Edit: Also, code sense isn't showing correct options. Xcode is often glitchy for me in similar ways. Restarting xcode often clears up the issue. Also, sometimes a missing semi-colon or curly brace will keep codeSense and highlighting from working as you want it to. Try Opt-B (build) to see if you have

Syntax highlighting in jekyll using redcarpet

那年仲夏 提交于 2019-12-01 22:18:49
问题 I'm trying to get code highlighting to work for a simple blog built with jekyll. I want to be able to do code highlighting within posts written in markdown so I enabled redcarpet as markup language. This works all fine, the code gets formatted in <pre></pre> tags and all the various elements of the code get corresponding classes. e.g. <span class="n">function</span> <span class="n">saySomething</span> <span class="p">()</span> <span class="p">{</span> etc. This is awesome but this doesn't

Syntax highlighting in jekyll using redcarpet

狂风中的少年 提交于 2019-12-01 19:02:15
I'm trying to get code highlighting to work for a simple blog built with jekyll. I want to be able to do code highlighting within posts written in markdown so I enabled redcarpet as markup language. This works all fine, the code gets formatted in <pre></pre> tags and all the various elements of the code get corresponding classes. e.g. <span class="n">function</span> <span class="n">saySomething</span> <span class="p">()</span> <span class="p">{</span> etc. This is awesome but this doesn't give us of the actual highlighting (color) yet. So I suppose there must be some css ready to copy and

IDLE won't highlight my syntax

我与影子孤独终老i 提交于 2019-12-01 18:08:22
Using IDLE and Python version 2.7.3. Only when I start a new file it highlights for a few lines and then just stops after I press F5. So all my text becomes plain black. If there are equally good/better command line and editor combinations out there, you may always suggest them. This happened to me too. Save it as .py (manually type .py in the document name), and the highlighting will come back. I usually have to save the file as .py before IDLE will do any syntax highlighting at all. Not sure why it would highlight for a few and then stop though. I've never had that happen. Alex Check the key

Vim: toggle highlighting of long lines

狂风中的少年 提交于 2019-12-01 17:37:22
In my .vimrc, I have: :au BufWinEnter * let w:m1=matchadd('Search', '\%>80v.\+', -1) to highlight lines that stray over the 80 character limit. How can I set it so that this is toggled on/off by pressing a function key? Use mappings. To activate highlight: :nnoremap <leader>1 :match Search '\%>80v.\+'<CR> To deactivate it: :nnoremap <leader>2 :match none<CR> UPDATE to use same key/key combination to toggle highlight: let s:activatedh = 0 function! ToggleH() if s:activatedh == 0 let s:activatedh = 1 match Search '\%>80v.\+' else let s:activatedh = 0 match none endif endfunction nnoremap <leader

Vim: toggle highlighting of long lines

北慕城南 提交于 2019-12-01 16:40:03
问题 In my .vimrc, I have: :au BufWinEnter * let w:m1=matchadd('Search', '\%>80v.\+', -1) to highlight lines that stray over the 80 character limit. How can I set it so that this is toggled on/off by pressing a function key? 回答1: Use mappings. To activate highlight: :nnoremap <leader>1 :match Search '\%>80v.\+'<CR> To deactivate it: :nnoremap <leader>2 :match none<CR> UPDATE to use same key/key combination to toggle highlight: let s:activatedh = 0 function! ToggleH() if s:activatedh == 0 let s

Is there an Eclipse C# Highlight, Code Completion plugin

假如想象 提交于 2019-12-01 16:09:05
I need an Eclipse 3 plugin for C# syntax highlight and hopefully code completion. I am running both Mac and Windows versions of Eclipse. I have evaluated "Improve C#" but it seems to be not working. Have a look at Emonic . It is an Eclipse plug-in which allows you to build C# programs with Mono or Microsoft .NET. 来源: https://stackoverflow.com/questions/2952973/is-there-an-eclipse-c-sharp-highlight-code-completion-plugin

Is there an Eclipse C# Highlight, Code Completion plugin

南笙酒味 提交于 2019-12-01 15:06:00
问题 I need an Eclipse 3 plugin for C# syntax highlight and hopefully code completion. I am running both Mac and Windows versions of Eclipse. I have evaluated "Improve C#" but it seems to be not working. 回答1: Have a look at Emonic. It is an Eclipse plug-in which allows you to build C# programs with Mono or Microsoft .NET. 来源: https://stackoverflow.com/questions/2952973/is-there-an-eclipse-c-sharp-highlight-code-completion-plugin