syntax-highlighting

Eclipse highlighting the same occurrence of the word [closed]

纵然是瞬间 提交于 2019-11-27 11:26:03
问题 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

PHP syntax highlighting [closed]

喜欢而已 提交于 2019-11-27 10:32:06
I'm searching for a PHP syntax highlighting engine that can be customized (i.e. I can provide my own tokenizers for new languages) and that can handle several languages simultaneously (i.e. on the same output page). This engine has to work well together with CSS classes , i.e. it should format the output by inserting <span> elements that are adorned with class attributes. Bonus points for an extensible schema. I do not search for a client-side syntax highlighting script (JavaScript). So far, I'm stuck with GeSHi . Unfortunately, GeSHi fails abysmally for several reasons. The main reason is

SublimeText encloses lines in white rectangles

耗尽温柔 提交于 2019-11-27 10:20:59
It's rather annoying and I can't seem to figure out why. Rob Cowie Looks like you have SublimeLinter installed. It highlights errors and warnings. 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 ;-) {"anaconda_linting": false} At least, it fixed my problem. Blessings (a debtor)<>< Disabling Annaconda

Syntax highlighting/colorizing cat

ⅰ亾dé卋堺 提交于 2019-11-27 09:58:29
Is there a method to colorize the output of cat , the way grep does. For grep , in most consoles it displays a colored output highlighting the searched keywords. Otherwise, you can force it by calling grep --color Is there a generic way to color the output of any program according to your personal choice. From what I understand, the program itself is not responsible for the colors. It is the shell. I am using the default shell in FreeBSD 5.2.1 which looks like it has never seen colors since epoch. cat with syntax highlighting is simply out of scope. cat is not meant for that. If you just want

Syntax highlighting for Jade in Sublime Text 2?

余生长醉 提交于 2019-11-27 09:03:31
问题 I just started using Sublime Text 2 on Mac. I also just started using Jade for my views in Node.js, and am wondering if there is a way to add syntax highlighting for Jade into Sublime Text 2. 回答1: Sublime Text 2 supports Textmate syntax definition files. There is a Jade Textmate bundle at https://github.com/miksago/jade-tmbundle. Install by creating a new folder in your Sublime Text "Packages" folder, call the new folder Jade , then curl -O https://raw.github.com/miksago/jade-tmbundle/master

Where can I find a syntax highlighting library for Java? [closed]

梦想的初衷 提交于 2019-11-27 07:06:38
I'm writing a source-code editor in Java (for Java source code), and I'd like to add simple syntax highlighting (distinctive coloring for keywords would suffice). Any suggestions? Something like JSyntaxPane , perhaps? A very simple to use and extend JEditorKit that supports few languages. The main goal is to make it easy to have nice looking Java Swing Editors with support for Syntax Highlighting. ivmos What about RSyntaxTextArea ? It uses a modified BSD license . You first should think about using a common parser to create an AST (abstract syntax tree) from the sources. There are some tools

Disable or fix #ifdef-sensitive colouring and intellisense in Visual Studio

巧了我就是萌 提交于 2019-11-27 07:02:53
问题 The problem: My syntax highlighting and IntelliSense are broken. I have a C++ source file like this: #include "stdafx.hpp" #ifdef SOMETHING do_some_stuff; #endif where stdafx.hpp (the precompiled header for the project) includes a .h file that says: #ifdef DEFINE_SOMETHING #define SOMETHING #endif and DEFINE_SOMETHING is defined in the project properties for the project (under C++ / Preprocessor). Visual Studio is losing track, and displaying do_some_stuff; (which is actually lots of lines of

Free/open source code editor UI control for .Net [closed]

岁酱吖の 提交于 2019-11-27 06:53:26
I'm looking for a free , syntax-highlighting , possibly autocompleting "Programmer's textbox" style control for use in a Visual Studio Windows Forms or WPF project. It should work with C# and self-defined languages, and the licence should permit its use in a closed, in-house development tool. There are pay-for solutions available - something like http://www.syncfusion.com/products/user-interface-edition/windows-forms/Edit would work fine - but I am looking for something simpler, and would prefer not to pay for unnecessary functionality. Any ideas? marc_s I've been using the SharpCode

Copy Notepad++ text with formatting?

北慕城南 提交于 2019-11-27 05:57:27
I'm using Notepad++ to write code. How do I copy code in Notepad++ along with its formatting to paste into Microsoft Word? (i.e. syntax highlights, etc) Here is an image from notepad++ when you select text to copy as html. and how the formatted text looks like after pasting it in OneNote (similar to any other app that supports "Paste Special"): npinti Taken from here : You can use Notepad++ to accomplish this in three ways. Just so you know, Notepad++ is a more advanced version of Notepad, which supports syntax highlighting of different code files "out of the box" - PHP included! Download &

Highlight words in a pdf using itextsharp, not displaying highlighted word in browser

此生再无相见时 提交于 2019-11-27 05:23:21
Highlighted words are not displaying in browser using itextsharp. Adobe Browser CODE List<iTextSharp.text.Rectangle> MatchesFound = strategy.GetTextLocations(splitText[i].Trim(), StringComparison.CurrentCultureIgnoreCase); foreach (Rectangle rect in MatchesFound) { float[] quad = { rect.Left - 3.0f, rect.Bottom, rect.Right, rect.Bottom, rect.Left - 3.0f, rect.Top + 1.0f, rect.Right, rect.Top + 1.0f }; //Create our hightlight PdfAnnotation highlight = PdfAnnotation.CreateMarkup(stamper.Writer, rect, null, PdfAnnotation.MARKUP_HIGHLIGHT, quad); //Set the color highlight.Color = BaseColor.YELLOW;