.scss.erb extension syntax highlighting for scss in aptana/eclipse - eclipse

If I have some eRuby in a scss file, I need to make the extension *.scss.erb. However, doing so causes the sytax highlighting for *.erb rather than *.scss. Is there any way to get eclipse to determine the syntax highlighting more intelligently or at least allow manual syntax assignment like in notepad++?
The only workaround I've found so far is to rename the file *.scss, open it, then rename it back to *.erb so it gets processed correctly later on.

There should be.
What you would do is go to Preferences > General > Editors > File Associations and set the default editor for your *.scss.erb extensions, however there's a bug in Eclipse that prevents file associations with more than one period:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168573
The way I get around the issue is by right clicking the source file in Project Explorer and going to Open With > Other... and selecting Sass Source Editor from there.

Related

Disable visual editors in MyEclipse

What is the best way to disable all visual editors in MyEclipse?
Every time I open an HTML file, it spends a few seconds to render the HTML file in a wysiwyg editor and fails at it.
Every time I open a properties files, it opens it in a excel-like table that completely ignores the comments in the properties files.
The first thing I do is to hide the visual panel to revert to the source code.
I never use a wysiwyg editor or any design wizard. But I can only change file associations one type at a time. For HTML I have to change the assotiation for .html, .htm and .xhtml. Same for the various .xml files.
Isn't there a way to remove or disable all visual editors for good, so that MyEclipse doesn't spend time and memory on it? Maybe even uninstall them?
Right clic on File > Open With > text editor
After doing that for a file, eclipse keep this as default for the file
or in preferences, in General > Editors > File Associations set for every extension the text editor associate to it (but like you said, you have to do it for every extension, but it doesn't take so much time to do it and once you've set it, it's remembered)

Eclipse treating file as plain text

I've got a small homework project, and for whatever reason Eclipse has decided to stop highlighting syntax or allowing intellisense or goto definitions or anything in this Main.java file. I've tried rebooting it, and the computer, but had no luck.
The thing that really has me confused is that it's still compiling and running the code correctly (eg, changes I make in Main.java are compiled and run - it's not running old Main.class files), so it's still in the build path ... right?
Any ideas?
Right click on the file in the Package Explorer and choose the Open With menu. You will probably find that Text Editor is selected, choose Java Editor to open the file with the correct editor.
The Open With menu selection is remembered so you should get the Java Editor in future, but equally if you choose the plain text editor that is also remembered.
I suggest finding a way to reset any setting you might have set by accident. Not saying that you did it. But just to make sure, just try it out. If you customized the preferences already, you could make some kind of note of the settings, then change it. If that doesn't work, let me know. Good Luck!
Copy the text somewhere, delete the file, and then add a new class (of the same name) and paste the text back.

Eclipse file associations for extensions with multiple periods

I have several Mako templates in my project that are named things like header.html.tmpl and settings.py.tmpl. I would like to add file associations to Eclipse to open these with the appropriate editors. For example, I would like header.html.tmpl to be opened in the HTML editor, settings.py.tmpl to be opened in the Python editor, etc. I go to Preferences->File Associations and I try adding *.py.tmpl to the list but after I click "Ok" nothing happens and the desired extension does not appear in the list. If I try instead using .py.tmpl I can add it to the list and add the Python editor to its associated editors but when I double-click a .py.tmpl file it doesn't use the correct editor.
Obviously it would probably work to just use -tmpl instead of .tmpl, but I'm wondering if anyone knows a way around this or can confirm that it's a bug/missing feature.
Its a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=168573

SVN Export in Eclipse removes labels on tabs

I have a very strange effect when using subclipse with eclipse. Whenever I use Team->Export to export a file from the editor the export works fine, but the label of the tab of the file is removed.
Effect can be seen here: http://www.daspferd.de/img/tabs.png
Strangely enough it happens with php-files, css-files, html-files but NOT with javascript-files. So I'm assuming it's some kind of setting that I haven't found yet and not a bug in subclipse.
Anyone know where I can shut down this behaviour?
It could be a bug in the editors. If eclipse opens an editor on the exported file, it might not open it as an IFileEditorInput, and the editors therefore do not set the title correctly (that's the job of each individual editor implementation).
This is just a guess, but it would be consistent with some editors behaving ok and some not. It would basically be a missing feature in some of your editors.

How to disable MyEclipse visual HTML designer

My computer lags for several seconds when I open an HTML file in MyEclipse, or make a major change to a file that's already open. I suspect that the WYSIWYG part of the visual HTML designer is responsible; is there a way to turn that off but retain the color-coded text editor/formatter? I also don't care about the "preview" feature, if that makes a difference.
I have faced the same issue. Go to Window > Preferences > General > Editors > File Associations and pick the file extension for which you would like to disable/enable the designer. Hope that works for you.
Make Default MyEclipse Jsp Editor for opening jsp files without Visual Designer
Go to
WIndow > Prefs > General > Text Editors > File Associations
1-Click on File Associations -
2-select file type for whom you want to change Editor-
3-Select Myeclipse Jsp Editor as default
Same way you can adjust any files types Editors
adjust the default editor for the file types like .jsp, .jspf, .jspx and so on to use the non-visual editor.