disable syntax highlighting in eclipse - eclipse

I want to turn off syntax highlighting in eclipse (CDT, if it mattes).
I tried Window->Preferences->C/C++->Editor->Syntax Coloring and unchecked "Enable semantic highlighting"
I also tried Window->Preferences->C/C++->Scalability->Disable syntax coloring in editor.
Neither is doing anything for me.
How do I get regular black on white text for .c and .h files in eclipse's text editor?

You can open the files with Eclipse text editor (no syntax highlighting no completion, etc...):
you can change default file association in Eclipse preferences (General ->Q Editiors -> File associations)
you can open a file with the text editor via the contextual menu on the file "Open with -> text editor". Eclipse will remember your choice, and will use the text editor the next time you'll open this file.

Scalability mode works for me (on Eclipse CDT Luna) when I follow these steps:
Select Window->Preferences->C/C++->Scalability->Disable syntax coloring in editor
Set Window->Preferences->C/C++->Scalability->"Enter scalability mode when the number of lines in the file is more than" to something low (e.g. 10)
Close the file and reopen it.

Related

Disable syntax highlighting for text files (*.txt) in vscode

When I open text files (".txt" plaintext files), in Visual Studio Code, they are syntax highlighted and also vscode starts offering suggestions as I type. How can I turn all this off and just use vscode as a simple editor for these files?
Here's how to fix it:
Open a text file.
In the lower right corner of the window, click the syntax highlighting language (in my case, C++):
A menu will appear at the top center of the window. Click Configure File Association for '.txt'...:
A list of languages will appear. Scroll down and choose Plain Text.
Now ".txt" files will be treated as plaintext and won't be highlighted, etc.

How to render Ethiopian amharic character in netbeans windows 10

I have a problem on writing and printing out amharic character in netbeans ide, when I try to print out on the system the netbeans ide doesn't display them correctly instead it displays boxs, any one can help me pls?
The language code is 'am' and country is ET (ETHIOPIA).THANK YOU
NetBeans needs a font that supports Amharic in its editor window and Output window. I tried a few of the widely used fonts in NetBeans but (surprisingly) they all rendered Amharic characters as empty rectangles, so I found one that explicitly supports Amharic: Abyssinica SIL
I downloaded that font as an EXE file (use the ZIP file for Linux) and ran it to install the font in Windows. Then I restarted NetBeans and changed its default font to Abyssinica SIL:
Select Options from the Tools menu and click the Fonts & Colors icon.
On the Syntax tab click the ellipsis (...) button to the right of the Font field and choose the Abyssinica SIL font you just installed, and click OK.
The NetBeans editor will use that font immediately, and correctly display Amharic text in the editor window.
However, Amharic text in the Output window will still be rendered as empty rectangles. To fix that:
Download the ZIP file for Abyssinica SIL.
In the NetBeans Ouput window right click and select Settings... from the popup menu to open the Options window, click the Miscellaneous icon, and then click the Output tab.
Click the Import... button, click the Browse... button and choose the ZIP file you just downloaded: AbyssinicaSIL-1.500.zip. When you click OK to close the Select Options to import window you'll get a scary warning "Import may irreversibly overwrite your current settings..." but click Yes to continue. NetBeans will restart.
After the restart go back to the Options window where you imported the ZIP file, click the Miscellaneous icon, and then click the Output tab. Click the ellipsis (...) button to the right of the Font field and choose the Abyssinica SIL font you just installed and click OK. Amharic text will now render correctly in the Output window.
Here's a simple program and its output to show it works :
Notes:
There's no need to specify country or language to resolve this. However, running the app from the Command Prompt window still renders Amharic as empty rectangles, and the font cannot be changed to Abyssinica SIL. I suspect the solution for that may involve setting the locale appropriately in Windows.
Abyssinica SIL is not a mono-spaced font so only set it as the NetBeans font if you need to enter Amharic text in the NetBeans editor. (I'm sure there are mono-spaced fonts that support Amharic - I just grabbed the first one I found.)
I also tried running the app in Eclipse and Intellij IDEA without any configuration changes. In both cases the Amharic text rendered correctly in the editor. The output also rendered correctly in Eclipse, but as empty rectangles in Intellij IDEA. If you use Amharic text heavily you may want to consider switching to Eclipse.
In netbeans preference(setting) change the font from its default to Nyala. after that the boxes will be changed to Amharic texts.
hope your problem is solved

Disable colors and format to source code in Eclipse

Is it possible to disable formatting and colors to source code in Eclipse.
I want my java code look like the poor notepad (black and white, etc). don't ask why, I just need answers. Thanks.
I don't think there is a quick way to do this as it is such an unusual thing to do. But you can change the syntax coloring options in the Preferences in 'Java > Editor > Syntax Coloring'.
Changing syntax coloring options as suggested earlier is a good way to achieve that.
You can also consider just not using the Java editor and using the plain text editor instead: to do so, either open your files with right-click > Open With > Other... and select the regular Text Editor. From the Editor Selection dialog, you should be able to override the default editor for your Java files to this Text Editor.
Note that the text editor doesn't provide completion, or documentation on hover, but you'll still get validation/problem reporting.

Quick way to set custom syntax highlighting in Eclipse

I know I'm not the first to need this. I am working on an in house created codebase and I would like to apply highlighting to it within Eclipse. In Notepad++ I can set language for the file I'm looking at. Is there any way to do this for Eclipse?
The code I'm working on would use the same syntax styling as C++.
Your best bet is to go to Preferences -> General -> Editors -> File associations. Add the file extension of the thing you are trying to open and add the C++ editor as the associated default editor.
If there is no file extension, then things are a little harder. Instead of double-clicking to open the file, right-click -> Open with... -> other -> C++ editor. This will remember your choice for that file only.
As Andrew Eisenberg said, go to Window --> Preferences --> General --> Editors --> File Associations and ensure your choices for editor for each file type are correct according to your desires.
However, for Eclipse CDT most of your file types are set in Preferences --> C/C++ --> File Types instead.
Also, like he said, you can use the right-click menu to choose your own editor, including an external system editor, such as Sublime Text 3, Atom, Visual Studio Code, Notepad++, etc.
Right click on the file --> Open With --> Other... --> choose an "Internal editor" or "External program" to your liking, optionally checking the box at the bottom to make this the default choice next time.

Configuring tab space for Eclipse Compare Merge editor

Is there a way to configure tab spaces for Eclipse Compare/Merge editor?
I have the Text Editor to use 2 spaces for tab and "Insert spaces for tabs" but this doesn't seem to take effect in the Compare/Merge editor. It's quite annoying since it's occasionally messing up the indentation in the source code. I guess my other option is to use an external tool but it would be great if this can be configured within Eclipse.
I'm using Indigo SR2 (64-bit)
--
This appears to be a related Eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259410
You can choose to ignore whitespaces in the compare editor. Either you right click in the editor and choose Ignore White Space or you set this in eclipses preferences Window -> Preferences -> General -> Compare/Patch -> Ignore White Space