How to get a ruby syntax highlighting in IntelliJ IDEA Community 12 - ruby

I know that there is no "official" support from Jetbrains. How can I workaround this?
I just need a syntax highlighting level of support for ruby.
Thanks in advance.

Follow the instructions in this blog post:
http://blog.jetbrains.com/idea/2010/09/custom-file-types-in-intellij-idea/
I've followed that process myself to setup custom syntax highlighting for both Velocity Template Language and JavaScript files, and am just about to do the same for Ruby.

Sure there is here an official technical support.
You can find ruby plugin for IntellJ IDEA here
Btw, first I thought you were using RubyMine, there you can set the auto-completion by going to File | Settings - IDE Settings - Editor - Code completion, so you could try to find what's up in this path for IntelliJ IDEA

Related

WebStorm and PHP syntax highlighting in WebStorm

I have WebStorm and really like it. I don't use PHP very often, but I'm working on a project that uses it...
So, I'm trying to get basic syntax highlighting in WebStorm.
I've tried using this plugin already (incompatible):
http://plugins.jetbrains.com/plugin/6610
And I've followed the steps in these threads:
Webstorm: how to extend to handle PHP files or even just higlight code correctly?
Is it possible to get Ruby syntax highlighting in PHPStorm?
I am using this textmate bundle:
https://github.com/textmate/php.tmbundle
It's being recognized by WebStorm, and the proper files are being associated with TextMate bundles, yet I still have no syntax highlighting.
At this point, I've just written all the stuff without the highlighting, but it seems a bit ridicules that I cannot get it to work.
I sent an email to technical support, and they just pointed me back to those resources and then suggested that I buy PHPStorm. And the IDE keeps suggesting that I buy IntelliJ IDEA Ultimate.
Has anybody else run into this problem?
https://github.com/textmate/php.tmbundle bundle uses non-documented 'injection' - feature that's not currently supported - thus no highlighting is actually recognized. See RUBY-14273

a short HOW TO on ECLIM

Hi
I have a list of How to unanswered. It would be great if anyone can help me in this
1) How to debug in eclim
2) How to create servlets easily ( with the template included by default)
3) By any chance is there any support for plugins like 'Perforce'
There are few things like support for junit, getter/setter/construction etc . There should definitely be a good support for the above . Of all things debugging should be there for sure. Unfortunately I am not able to find out how.
Please add more questions and lot more answers.
Thanks
I debug in eclipse. I don't think eclim provides debugging from vim. However, there are solutions. See question How to Debug Java Application using VIM.
Are you just talking about using eclipse's new file wizard to create servlets? I don't know how you could do that from Vim. But you can use vim's templates. Vim's method of templates are referred to in vimdoc as skeleton files. It looks like there are some plugins to provide some defaults: skeleton and tSkeleton.
When I use perforce, I use this perforce.vim plugin.
Eclim supports junit. For getter/setter/construction and other code snippets, try snipMate.

Can't make Ada work with Xcode 3.2

I've been looking around the web for an hour and I'm just giving up to ask it here...
I've got to work under Ada. I managed to make gnat work as a command line to compile my files.
But I want to be able to have proper projects in Xcode. My problem is that I've found some templates on the to make ada default templates, I've copy pasted them a bit everywhere (/library/developer/ application support etc) but they never appear in the list when I want to create a project.
My other problem is that when I create an empty project and add a .adb file to it I can't compile at all... How do I specify that I should use gnat with it?
I'm sorry for all these questions if they are stupid but I can't find the answer...
Two alternatives that may be of interest: the Ada plugin modules for NetBeans and the Ada 05 Language Module for BBEdit 9.x and TextWrangler 2.x .
FWIW, templates live in /Developer/Library/Xcode in Xcode 3.1.4.
If you are using the XCode Ada Plugin from here, it looks like it was made to work with Xcode 3.0. You might try downgrading to that and see if you have any better luck.
Personally, my IDE of choice is Emacs, so I can't go into any real detail about XCode past that. I'd suggest talking to the MacAda mailing list if you don't get a good answer here.

How to turn on syntax highlighting in etherpad

There are many free etherpad implementations since it went open source. Does etherpad support syntax highlighting or is some kind of add-on available?
I tried
http://typewith.me/
http://sync.in/
http://www.piratenpad.de/
You can install a plugin in Etherpad called "Syntax highlighting".
To install the plugin simple visit /admin/plugins on your Etherpad deployment and then search for "syntax" and click Install.
For details on the plugin see https://npmjs.org/package/ep_syntaxhighlighting
UPDATE: Syntax highlighting is available as a plugin in the current Etherpad -- see John's answer below.
The original etherpad creators were working on highlighting, but complex sync-problems made them abandon that feature -- as documented in a .txt file in the source code.
Many etherpad sites run on a mostly standard etherpad.org release. If highlighting would get added, you'd probably see it quickly adopted at sketchpad.cc. Perhaps watch them and wait? Or if you really want highlighting, a good first attempt/experiment would be the read-only view. Example: http://sketchpad.cc/sp/pad/view/BACfNDybki/latest
Try to use some existing highlighting javascript library to highlight the text inside DIV#padcontent or perhaps $('DIV#padcontent')[0].textContent
The complexity is getting the highlighted text formatting back into the DB. For this you might need to use operational transformations (which is the foundations of etherpad and as of recently also used in the Google Docs word processor). A tutorial: http://www.codecommit.com/blog/java/understanding-and-applying-operational-transformation
The etherpad plugin ep_codepad provides syntax highlighting - based on highlight.js - for etherpad.
https://www.npmjs.com/package/ep_codepad

web development application - mac

Does anyone know of an application (for mac) which will format a page of html code nicely?
ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sections of the code to make it more readable.
I've been trying Coda and Expresso - Expresso has the feature to minimize/collapse code but does not seem to be able to format code.
Please help?
TextMate is a really cool app. There are hundreds of bundles for all possible languages.
Try TACO HTML Edit
or
JEdit (Freeware)
Bye.
Try using tidy. I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.
I use BBEdit for this.
Textmate will do a nice job.
If you are a java or ruby programmer, Intellj or Rubymine does an excellent job of auto-formatting code(including HTML).

Resources