This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hello, It would be nice to add syntax highlighting into HAML templates (*.haml) http://haml.hamptoncatlin.com/ and ofcourse some code completion :)
Reassigning this issue to newly created 'ruby' component.
*** Issue 113130 has been marked as a duplicate of this issue. ***
Great, So, when we could expect full HAML support in Netbeans RubyIDE ? :-)
Hopefully Marcin will take a crack at it! I just integrated a fix such that goto-view/action works or HAML files (build 3419 and later)
Well, Marcin how things going on? :-)
I'm still working on it, i had to get to know netbeans architecture. I'll try to commit as soon as possible but i have deadline coming soon in my day job (i guess if i would add support before i started it would really speed up our development but now I'm kinda stuck, i have to finish project, and haml editing would be really helpfull, but i have to finish project soon and don't have time to work on haml support) anyway, before end of this month i'm planning to finish haml support :) but anyone else have time and is willing to take over please free to do so.
Hmm, I found that someone working on HAML support for Netbeans: http://www.nabble.com/New-version-of-the-Haml-Sass-Netbeans-support-available-t4616677s27020.html Maybe you can join together to work on it?
That would be me; I didn't even know this issue was here. Basic syntax highlighting work now for both Haml and Sass. You need to download the plugin, linked below. I am going to look at rewriting this using the Lexer APIs rather than Schliemann; after that I can hopefully start looking at code completion and other goodies, time allowing. I'm working on getting the source committed to the Netbeans repository currently; after that I will welcome any contributions, be they code, bug fixes, or ideas for where to go next. Did you get any source down, Marcin, or were you still in the concept stage ? I'd love to look at what you've got. I'll repost my announcement: Get the bits at: http://mediacast.sun.com/details.jsp?id=3759 This package provides reasonably complete support for both HAML/SASS parsing, including support for some embedded Ruby syntax highlighting. Nothing fancy for code completion or folding yet. Notable exceptions: - filters are not properly supported; contents are picked up and attempted to colorize as standard haml tokens; It won't hurt anything but can be a bit of an eyesore if you use them a lot. - multi-line comments in sass are only picked up as single line comments New in this version: - The tilde operator. I had an old copy of the documentation :( I expect to put out another update either this weekend or sometime this week. You can log bugs against it in JIRA and I'll be monitoring this list. Please kick the tires and let me know what crawls out.
Happily using the plugin Dylan. Could I request 'Go to Rails Action' support? It doesn't seem to work for .html.haml files for me. Great work.
It seems that work on this plugin completely stopped. There is no changes since the year. It's sad because HAML is very popular template system for Ruby.
Work has stopped; I've moved out of the Ruby space for the time being. If anyone wants to take the project over I'd be happy to send the source and help out with any technical questions that I remember the answers to. - Dylan
Dylan are you planning to get back some day? If not probably reassign this issue to 'issues@ruby' so it is caught by our queries. Otherwise thanks for the great contribution to the NetBeans a good luck with your new language ;)
Unfortunately, it is unlikely that I will return to it. I still love Ruby and Haml, but I don't forsee having the time in the next few years. And somehow I doubt users will want to wait that long ;) If someone does end up extending this, it probably needs to be rewritten in a framework a bit more in depth than Schliemann. There are already some scope issues that would be difficult, if not impossible to solve with that framework. Not the write tool for the job. I've tried reassigning; let me know if I need to change something else. I'm not that familiar with this bug system.
I'm mainly concerned about the sass enhancements in the upcoming HAML 2.2 release (mixins, etc.). I'm testing the development branch and the plugin is almost unusable (it marks a lot of syntax errors) when using the new syntax. Maybe you could open source the plugin, so the community will continue extending your great job. If not, could you please send me the source code? I think it'll only require minor changes to adapt it to the new version.
Voted for it, I think it's a must. HAML is beaitifully productive, and much better for reading and spotting typos for embeded Ruby code than XHTML views. For XML it's simply perfect.
http://code.google.com/p/postcomment/downloads/detail?name=org-netbeans-modules-haml.nbm&can=2&q=
https://docs.google.com/#folders/folder.0.0B5LiH7ZpPAaKYWYxOGVhOGUtNGI1ZS00YWUxLWI1MTgtNzM0ZjhjNjZmNmYz
Any news about a native implementation? the plugin it's not update since 2008 and not highlight the code correctly.
(In reply to Mte90 from comment #18) > Any news about a native implementation? > the plugin it's not update since 2008 and not highlight the code correctly. Can you attach an example file which will not correct highlighted? For my simple example: #content .left.column %h2 Welcome to our site! %p= print_information .right.column = render :partial => "sidebar" It worked ok. I tried the plugin from the first of september of 2008.