syntax-highlighting

Is there a colored REPL for Clojure?

[亡魂溺海] 提交于 2019-11-29 20:37:31
I'd like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby. Are there any libraries or settings for user.clj that provide automatic coloring of the REPL? Example IRB: I do not know of any way to have the basic Clojure REPL, as started by something like java -cp clojure.jar clojure.main , do syntax highlighting. If, however, you use Emacs & SLIME (the development environment of choice of a great part of the Clojure community!), then you can have the SLIME REPL highlight syntax like clojure-mode does. First, you'll have to lift some code from the clojure-mode

How do I: Visual Studio Syntax Highlighting Extension

北慕城南 提交于 2019-11-29 20:29:19
I want to develop an extension for VS2010 that will allow me make some additional features to syntax-highlighting. I installed the SDK, how do I start from? Please give a little snippet (or a link to code) where I can see how to start. Note : do I have to check the whole block of code, or the SDK tells me on each word what it is, how it's declared etc.? There's a decent bit of information out there for writing classifiers. I wrote a blog article about it awhile back. As for samples/code, there's: A project template that ships with the SDK (look under C#->Extensibility) (Brian's answer mentions

In vim, how do I highlight TODO: and FIXME:?

。_饼干妹妹 提交于 2019-11-29 20:15:30
In vim, FIXME and TODO are highlighted, but I can't get FIXME: and TODO: (note the colon after the keyword) to highlight? What should I put in my .vimrc to make this happen? Well, you've already found the problem, but here's the why. There are three basic types of syntax matching: keywords, matches, and regions. Keywords are fixed strings, generally used for basic language keywords ( int , double , ...) and also, in your case, for the FIXME and TODO. I really do mean fixed strings; they have to be exact and whole words, unlike matches and regions, which use regex. For example, from the C

Change Emacs syntax highlighting colors

余生长醉 提交于 2019-11-29 19:51:15
I'm running Emacs, editing files in C++ mode and PHP mode. I love syntax highlighting as a concept, but the default colors are a travesty. I can barely read some of them: way too dark. What is the easiest way to change their values? I can't seem to find anything about this on the web. I don't even mind changing the binary as I'm compiling my own Emacs. I just want to find the place where it says blue is #0000FF and change it to #AAAAFF for example. seth I find it easiest to use color-theme for this sort of thing. https://www.emacswiki.org/emacs/ColorThemes But if you don't want to do that, put

VIM: simple steps to create syntax highlight file - for logfiles

强颜欢笑 提交于 2019-11-29 19:45:08
I have some (log4j generated) logfiles to go through; I know their format pretty well (I mean I have already got off-the-peg regexes etc I can use). I want to automatically highlight them in VIM when I load them up (*.log). A logfile entry looks something like this: YYYY-MM-DD HH:MM:ss,SSS [...] #LOG-LEVEL# [...] Message Where #LOG-LEVEL# is one of the standard 'ERROR', 'INFO', 'DEBUG', 'FATAL'....and the 'YYYY-MM...' represents the date/time to millisecond resolution. To get me started , what are the steps needed to get the date-string highlighted in (say) yellow-background with blue text -

C++11 mode or settings for emacs?

旧城冷巷雨未停 提交于 2019-11-29 19:44:16
I'm running Emacs 23.3.1 (Ubuntu, Oneiric package) and emacs doesn't appear to understand any of the new C++11 keywords, constexpr, thread_local, etc. Also it doesn't understand that '>>' is now permitted in template parameters, or the new 'enum class' syntax. Is there an updated or alternative module somewhere? Or failing that, some settings to make emacs more C++11 friendly in the mean time? I've checked trunk version, cc-mode hasn't been updated yet, and AFAIK there's no alternative. If you really want it, but don't want to get your hands dirty, you should pay someone to implement it for

Custom syntax highlighting in Sublime Text 2

a 夏天 提交于 2019-11-29 19:26:22
I want to use Sublime Text as log viewer. That's why I need to create tmlanguage file for highlighting of word "ERROR" (and some others). Is there any spec of tmlanguage xml, or can you give me basic example of syntax-highlighting file for sublime text 2? I've not found the answer in a similar question: Syntax specific highlighting with Sublime Text 2 skuroda Sublime Text uses the same syntax highlighting as TextMate. The grammar can be found here . I'd recommend working in JSON then converting to XML, since it's easier (at least it is for me) to read. The PackageDev plugin will give you a

How do I set up a syntax highlighter on Blogger? [closed]

孤街醉人 提交于 2019-11-29 19:14:11
How do I set up a syntax highlighter on Blogger's new interface? I did try with many options but nothing has worked. Please give any suggestions. 1. First, take backup of your blogger template 2. After that open your blogger template (In Edit HTML mode) & copy the all css given in this link before </b:skin> tag 3. Paste the followig code before </head> tag <script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js' type='text/javascript'></script> <script src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js' type='text/javascript'></script> <script

Custom syntax highlighting in Geany

白昼怎懂夜的黑 提交于 2019-11-29 17:52:02
问题 I am trying to create custom syntax highlighting for Kivy '.kv' files in the Geany editor. Although the specific filetype seems irrelavant to the issue I'm having, as any efforts I make at getting syntax highlighting to work for a custom filetype results in a completely non-highlighted file. I believe I have done my homework on this, and nothing seems to work. I have added the following to ~/.config/geany/filetype_extensions.conf Kivy=*.kv; I also have a custom type definition file named

Highlight debug functions

半腔热情 提交于 2019-11-29 16:54:48
I use PhpStorm for a while now, and it's code inspection and syntax highlighting is great! To further extend this feature, I am looking for a way to alert myself of 'debug functions'. I frequently use functions like var_dump() , exit() or echo '<pre>',print($var),'</pre>' . Unfortunately, I also frequently forget these when deploying some code. Is it possible to add custom highlighting in PhpStorm for some defined functions with the Inspection-feature, so I am visually notified that some debugging-code is still present? Or a plugin or other feature to accomplish something like that? Install