syntax-highlighting

How to see a large JSON file pretty printed on Ubuntu? [closed]

你。 提交于 2019-12-04 09:53:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . I would like to hear your suggestions on how to handle a large (40MB) JSON file on Ubuntu. I would like to see it pretty printed in vim or gedit or any other editor. One can find numerious tutorials on how to prettify the JSON, however, they do not have to deal with large input. I also imagine I could pipe the

Is there an IDE out there that does structural syntax highlighting?

拜拜、爱过 提交于 2019-12-04 08:29:29
问题 Somewhat inspired by this question about a graphical programming environment. I don't think that C++ or C# are really conducive to this type of environment, but perhaps there's something halfway there. Lot's of IDEs that I've used will use syntax highlighting to change the foreground (or even the background) colour of text for keywords, strings, comments, etc... Are there IDEs out there that will highlight larger syntactic structures? Here's an example of what I'm thinking of. Example code

Compiler compiler in C#

好久不见. 提交于 2019-12-04 08:19:15
问题 I'm looking for a customizable parser and/or lexer that can allow me to build a custom syntax checker in C#. Essentially the user will enter code a line of code (custom), and the syntax checker will be able respond if it is written correctly or not. 回答1: That's Irony. Be sure to read the discussion, because it's a lot going on there. Use the old release from November or use the latest, but then make sure you understand what is in that release and what not. For most things, the November

Eclipse CDT: Disable red underlining

不羁的心 提交于 2019-12-04 08:07:28
I use eclipse cdt and I included some files. Unfortunalty I cannot add the include path to my eclipse project since then eclipse will always crash when it starts indexing the newly added includes. Therefore I would like to turn off the feature that highlights errors. Where can I do this? This is probably not the answer to your problem, but it's actually the answer to your question (which I was looking for and now found out myself): How to disable the red underlining, which can be pretty annoying because it hides underscore characters. Go to Preferences -> General -> Editors -> Text Editors ->

Persistent :set syntax for a given filetype?

一曲冷凌霜 提交于 2019-12-04 07:47:08
问题 I'm working on a Symfony2 project which uses Twig, and the filetypes are myfile.html.twig . Vim doesn't automatically detect the syntax highlighting and so applies none. I can use :set syntax=HTML after I've opened the file but this is a pain when jumping between files. Is there a way to persistently set the syntax highlighting for a specific file type in vim? 回答1: You can use autocmd to accomplish that, i.e.: augroup twig_ft au! autocmd BufNewFile,BufRead *.html.twig set syntax=html augroup

Pandoc: What are the available syntax highlighters?

≯℡__Kan透↙ 提交于 2019-12-04 07:39:31
问题 Bullet point 18 of http://pandoc.org/demos.html#examples shows how to change the syntax highlighter used by giving an argument to --highlight-style . For example: pandoc code.text -s --highlight-style pygments -o example18a.html pandoc code.text -s --highlight-style kate -o example18b.html pandoc code.text -s --highlight-style monochrome -o example18c.html pandoc code.text -s --highlight-style espresso -o example18d.html pandoc code.text -s --highlight-style haddock -o example18e.html pandoc

How do I get “rainbow parentheses” in emacs?

北城余情 提交于 2019-12-04 07:29:36
问题 I would like rainbow parens for editing Clojure in Emacs and since VI does this I assume that in Emacs it should be something like M-x butterfly or something :) 回答1: This is an old question now, but I recently wrote RainbowDelimiters mode for this. It's a 'rainbow parens'-type mode which colors all parens, brackets and braces, made with Clojure programming in mind. It highlights the whole buffer, not just the parens surrounding point. The most important thing is that it's FAST - all the other

Enabling Git syntax highlighting for Mac's terminal

随声附和 提交于 2019-12-04 07:26:38
问题 I miss the Git syntax highlighting I had on Windows for every "git .*" command like green staged filenames, some bolding, etc. How do I enable Git syntax highlighting for Mac's terminal? 回答1: git config --global color.ui auto 回答2: For seeing different colors for the diff command, use: git config --global color.diff true To globally change colors for most commands, use: git config --global color.ui true 回答3: Colors in Git Git can color its output to your terminal, which can help you visually

Use vim syntax definition with sublime-text2

我们两清 提交于 2019-12-04 06:37:24
Does anyone know if you can use (or convert) vim Syntax Highlight Definition Files with Sublime Text? I am searching for a highlighter for promela and only found one for vim, but am using sublime-text as my default editor The Definition i've found https://github.com/vim-scripts/promela.vim/blob/master/syntax/promela.vim Sublime Text uses the XML-based PLIST .tmLanguage format for language definitions, and to my knowledge no one has written a converter for vim syntaxes. However, if you'd like to take a stab at creating one yourself, I'd recommend installing the PackageDev plugin for ST2 (it

How to implement a simple Syntax highlighting method for edittext?

本秂侑毒 提交于 2019-12-04 06:05:21
I am making an app that involves coding and I need edittext to recognize if the word typed was 'something' then depending if it is registered to be colored, it will color the word. Here is what I want to do, when the user is typing and types 'function' I want it to automatically highlight. Same goes to any other 'function' word, '()', ' " ', and many other words the user types. You can accomplish this by using a TextWatcher like so: editText.addTextChangedListener(new TextWatcher() { final String FUNCTION = "function"; @Override public void beforeTextChanged(CharSequence s, int start, int