syntax-highlighting

Permanent syntax on switch for Vim over OS X Terminal

只谈情不闲聊 提交于 2019-12-05 09:03:08
I use the terminal to vim into existing and new programs. I hate the fact that at all times I need to kick in :syntax on on the command line to make the syntax all colorful. Does anyone have a recipe for how I can make sure my terminal always kicks in with colorful syntax ? Put syntax on in your ~/.vimrc file. Add syntax on to your ~/.vimrc . See :help initialization . 来源: https://stackoverflow.com/questions/13405149/permanent-syntax-on-switch-for-vim-over-os-x-terminal

How to make IntelliJ IDEA recognise code created by macros?

半城伤御伤魂 提交于 2019-12-05 06:42:55
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 IntelliJ IDEA project, and I use the sbt console from IDEA's sbt-plugin to compile and run my Scala

Eclipse Indigo PDT does not underline syntax errors

旧时模样 提交于 2019-12-05 05:56:21
I installed Eclipse SDK Indigo and then followed the following instructions to install PDT on it: This is the original solution posted by ben-k link to the topic: Eclipse indigo PDT 3.0 gotcha download "Eclipse Classic" unzip/install to a new folder location (e.g. c:\eclipse-indigo-win32\ go to help->install new software select Indigo - http://download.eclipse.org/releases/indigo from the "Work with" drop down list type "php" in the filter text Select "PHP Development Tools (PDT) SDK Feature select /next/ok/agree/finish etc.. wait for install and restart when prompted to check installation

Is there a Perl Syntax Highlighter (outputting to HTML) like PHP's GeSHi?

非 Y 不嫁゛ 提交于 2019-12-05 05:23:09
问题 Most PHP Developers are likely familar with the Syntax Highlighter called "GeSHi", which takes code, highlights it, with the use of HTML and CSS: include('geshi.php'); $source = 'echo "hello, world!"; $language = 'php'; $path = 'geshi/'; $geshi = new GeSHi($source, $language, $path); echo $geshi->parse_code(); GeSHi Supports a wide range of languages. I wonder, is there a similar Module for Perl? 回答1: Perl has a port of Kate highlighting system: Syntax::Highlight::Engine::Kate which seems to

Pandoc Syntax Highlighting in PDF not working

落花浮王杯 提交于 2019-12-05 04:55:06
问题 pandoc --version yields: pandoc 1.12.2.1 Compiled with texmath 0.6.5.2, highlighting-kate 0.5.5.1. Syntax highlighting is supported for the following languages: actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d, diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang, fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc, javascript, json, jsp, julia, latex, lex,

Language server with semantic highlight in VSCode

做~自己de王妃 提交于 2019-12-05 04:43:05
I'd like to write a language server to VSCode with semantic highlight support. The language I'm using has very complex rules, so I'd like not to rely on a tokenizer to distinguish between identifiers and keywords. I already have a language service in VS Community , where I've written my own Classifier. It's possible to write own classifier in VSCode , or the only way to colorize a document is add TextMate language specification file to a VScode package? Semantic coloring is not supported by the LSP as of VS Code 1.29. There are two main issues currently tracking this feature: LSP issue VS Code

Can one automatically get Intellij's regex assistance for one's own regex parameters

不羁岁月 提交于 2019-12-05 03:25:48
Intellij provides regex "assistance" (syntax checking) for parameters that expect regular expressions, eg coding: String[] array = string.split("(*."); will mark an error under the regex and provide a tool tip error: Unclosed group This also works for variables, eg String myVar = "(*."; // shows above error here String[] array = string.split(myVar); But if I create my own method that expects a regex, I don't get this assistance, eg: String[] myMethod(String regexParameter) { return someString.split(regexParameter); } myMethod("(*."); // no "error" marker like above Although Intellij can figure

Enabling italics in vim syntax highlighting for mac terminal

ε祈祈猫儿з 提交于 2019-12-05 02:36:08
I'd like to have vim display my comments in italics, and I understand I need to place cterm=italic in the hi Comment line in the color.vim file I'm using. This, however, is having no effect on the text display, which I suspect has to do with some Terminal.app setting, unless I'm misunderstanding the vim syntax. I'd appreciate if someone can show me how to enable this feature. Additionally, I am currently using the Monaco font, which does not have a separate italic file (however, the italic syntax-highlighting doesn't work for Consolas, Lucida, Bitstream Vera or other italic- or oblique-enabled

Change filetype (or other Vim settings) blockwise in a file?

寵の児 提交于 2019-12-05 02:05:35
问题 I program a lot of Perl in Vim. Often I just hack together some CGI script and put the CSS right into the program code. So lately I asked myself if it was possible, to put some Vim-specific comments around such blocks in my code, so that vim highlights the specific area not as a Perl script, but as a cascading stylesheet. This also would be neat when working with Mojolicious where you can embed entire templates just into the DATA-area but lose all the highlighting of the HTML then. Of course,

No syntax highlight for *.qss file in Qt Creator?

*爱你&永不变心* 提交于 2019-12-05 01:54:59
It's wired that Qt Creator didn't have a syntax highlight for its own style file format , or did i missed some packages ? VER: Qt Creator 2.1.0 I could not find any evidence in Qt's documentation that .qss is an officially designated file extension. I'd say just change it to .css . Go to Tools > Options > Environment > Mime types Find text/css and add *.qss to patterns. 来源: https://stackoverflow.com/questions/7624656/no-syntax-highlight-for-qss-file-in-qt-creator