syntax-highlighting

How to change color of HAML tags in NetBeans?

风格不统一 提交于 2019-12-01 12:37:31
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) 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=181 Sad to say "that HAML plugin which seems to be unsupported and lacks features", is the only Haml plugin

How to make a Syntax Highlighting for Java in Haskell?

对着背影说爱祢 提交于 2019-12-01 07:50:08
问题 Soon enough I will be forced to present a project in Haskell that is supposed to make a Java syntax highlighting. I did some research and I found out that Happy could be a solution( since is a yacc-like parser). Also there were mentioned Bison and Parsec. Since I am new in Haskell, I really don't have any ideas how to start this project. Any tips would help a lot. Thanks! 回答1: Since I am new in Haskell, I really don't have any ideas how to start this project Ah, therein lies the true question

How to enable syntax highlighting in R Shiny app with htmlOutput

佐手、 提交于 2019-12-01 07:04:53
问题 I have a Shiny app that generates computer code dynamically based on user inputs and presents it to the user so they can see exactly what query is being sent to a database. I have prism syntax highlighting working for code that is directly in the user interface function, so I know that prism is working; but for code that is generated in the server and sent to the user via renderText and htmlOutput the highlighting doesn't work. Here is an image of a simple example: Which was made with this R

IDLE won't highlight my syntax

白昼怎懂夜的黑 提交于 2019-12-01 02:48:33
问题 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. 回答1: This happened to me too. Save it as .py (manually type .py in the document name), and the highlighting will come back. 回答2: I usually have to save the file as .py before IDLE will do any syntax highlighting at

Vim syntax highlighting 'else:' for Python

可紊 提交于 2019-12-01 02:38:42
问题 I'm getting annoyed with the default python syntax highlighting in Vim. It does not highlight the else: statement correctly. Vim only highlights the else statement if I have some white space between the else and the colon : , so else : works, but else: does not. It must be easy to fix. I'm using Vim 7.2 回答1: I had below statement in my vimrc file. This made else: be tokenized as one word. After removing that else: syntax highlighting works just fine. set iskeyword+=: 回答2: It should work by

Set my own syntax in Sublime Text

两盒软妹~` 提交于 2019-12-01 00:48:35
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. Syntax highlighting is performed using .tmLanguage syntax definitions . They are formatted in Apple's XML-based PLIST format, although thanks to the excellent Sublime plugin PackageDev they can be written in

Is there a free code to html syntax highlighter written in C#? [closed]

爷,独闯天下 提交于 2019-12-01 00:42:24
Is there a free code to html syntax highlighter written in C#? I am looking for something I can host in an .net mvc app New answer These days I just use highlightjs which works perfectly well with C#. Old answer While I haven't open-sourced it yet, you'd be welcome to the formatter I use for the C# in Depth web site. Give it a try, and let me know if you'd like to use it. (This is no longer available.) If you can access a command line tool, you can get pygments (it is python), but just pipe the output back into your app. http://pygments.org/ It's has a multitude of output formats. I wrote a C#

Coqide 8.5: No syntax highlighting on Linux

廉价感情. 提交于 2019-12-01 00:33:07
I installed Coqide 8.5 w/ nix . Unfortunately, the text is blakc in all panels; there's no syntax highlighting of any kind (otherwise, 8.5 seems a big improvement over 8.4, which I've installed as well). I also get the following: (coqide:17272): GtkSourceView-WARNING **: Unknown parent scheme 'classic' in scheme 'coq_style' (coqide:17272): GtkSourceView-WARNING **: Failed to load '/nix/store/2sxcqfc4q3ls4g2q13n1zwfhnydvgq-coq-8.5pl1/share/coq/coq.lang': could not find the RelaxNG schema file The output of cat ~/.nix-profile/share/coq/coq_style.xml : <?xml version="1.0" encoding="UTF-8"?>

syntax highlighting in a VIM fold header

社会主义新天地 提交于 2019-12-01 00:04:33
问题 Is there any way to have VIM continue to apply formatting to the line used as the header for a fold? E.g., I have the following code: int foo(int a, int b) { int c; .... } When folded, I see: +-- 4 lines: int foo(int a, int b) {---------------------------- However, the whole line is highlighted as per the "Folded" class. Is there any way to disable this, so I continue to see the syntax highlighting? [for a simple example this is not so important, but I also use folding extensively in viewing

How to tell BeautifulSoup to extract the content of a specific tag as text? (without touching it)

安稳与你 提交于 2019-11-30 23:47:57
I need to parse an html document which contains "code" tags I'm getting the code blocks like this: soup = BeautifulSoup(str(content)) code_blocks = soup.findAll('code') The problem is, if i have a code tag like this: <code class="csharp"> List<Person> persons = new List<Person>(); </code> BeautifulSoup forse the closing of nested tags and transform the code block into: <code class="csharp"> List<person> persons = new List</person><person>(); </person> </code> is there any way to extract the content of the code tags as text with BeautifulSoup without letting it fix what IT thinks are html