SQL syntax coloring for Eclipse Kepler - sql

Is anything (else) for Eclipse Kepler that colors SQL syntax ... and assists with SQL code editing? I don't anything more.
I tried DTP (Data Tools Platform), but it runs only with new files. It does not color syntax in already written files - and it is very bad, uncomfortable - because I have prepared few files and it is fully useless to create new file and copy (rewrite) content of original file into that new file, mostly if content assist does not assist with some commands.

From me I recommend Toad Extension for Eclipse. It does color syntax also in already written files.
Eclipse -> Help -> Install New Software -> download from site: http://community-downloads.quest.com/toadsoft/toadextensions/eclipse/freeware/

If you are getting syntax coloring in some files but not in others with the same extension, some of the files may have been opened with another editor previously and Eclipse remembers which editor was last used with a particular file. To change the editor that's used, right click on the file and select "Open With" option.

Related

IntelliJ how to do Search in files containing text like Eclipse

my project has file with text "CDSettlementPrintingEnquiryComponent", I want to search which files contain this text in IntelliJ 2020.3, but fail, how to do this in Intellij Community 2020.3?
I try Find in Files>Directory tab also, all my files in under CFMS directlry, but again, IntelliJ still said nothing found...why?
Also, I cannot find the "Find in Path" menu mentioned in
Find the search string in a project
Don't know if this is the reason, I check the following website
Choose Your Edition
and it said IntelliJ IDEA Community Edition don't support javascript/Typescript

"Excluding" a code file in resources from IntelliJ

I have a groovy file in my test resources folder (e.g. abc.groovy)
Because I use it like a resource.
Everything works fine except it is red squiggly underlined since IntelliJ thinks it is a code file (actually I use it more like an include file for a scripting engine, which is why I have it in a resources folder)
How can I stop IntelliJ from thinking it is runnable code? I don't want to exclude it from the project completely since it I want it in Version control and available for searching.
It is red underlined because it contains some non-groovy syntax as well (which my program recognizes, but IntelliJ does not)
It will show up in "Problems" sidebar (but not in Problems at the bottom of the IDE, and doesn't prevent code from running)
You can mark that file as plain text (there's an action for that if you right-click on the file in Project View).

Configure Intellij to support another java extension file

I have some app that runs bean shell scripts (*bsh) and I absolutely love Intellij IDEA. And my bsh scripts are has syntax looks similar to java syntax. How can I add support of bsh files to make it behave like it is java source files?
I tried to add association at Settings -> Editor -> File types and all I got is general syntax highlight but it still doesn't support formatting and autocomplete so the Code -> Reformat code breaks all my formatting to left aligned text.
UPD BeanShell Box doesn't work. Maybe because of its outdating
You are probably looking for BeanShell Box plugin.

Intellij Idea how can I specify colors for a specific file type?

I am using a color theme that I am perfectly happy with, but I am dealing with a lot of ".impex" files that are unique to the Hybris platform. The IDE essentially sees them as text files. How can I add syntax coloring to these ".impex" files so the text is not just all one color?
Maybe this plugin can help you.
Syntax highlight for impex files
Besides, you can register a file pattern to a recognised file type: Preferences -> IDE Settings -> File Types.

How to Pretty print VBA code?

How do you copy VBA code into a Word document and retain the VBA editor color scheme?
You can use Notepad++ to accomplish this in three ways. Just so you know, Notepad++ is a more advanced version of Notepad, which supports syntax highlighting of different code files "out of the box" - Visual Basic included!
Download & install it, fire it up, and load up your VBA code. You should automatically see it beautifully coloured (if not, because the file extension is something other than .vb, go to Language -> VB or Language -> V -> VB).
If you need to change any of the colours, you can easily do so - just go to Settings -> Styler Configurator. From that menu, you can change the various highlighting and font options, to suit your needs - although the default usually suffices for most.
Then, go to Plugins -> NppExport. From there, you have three options you can consider:
Directly print from Notepad++
Copy all formats to clipboard
Export to RTF
Export to HTML
The first is self explanatory. The second one - "Copy all formats to clipboard" - will copy the entire file with the highlighted syntax to the clipboard. Once you click it, then open Microsoft Word or your other favourite document editor, and just hit paste! You should see the beautifully syntax-highlighted code. If something goes wrong, then you can try one of the other options (export to RTF/HTML), although I've never had a problem with the clipboard method.
There are two programs on cnet downloads, which are free to try. In case you did not try them, here are the links:
VB-VBA Code Formatter & Printer 2.2
VBAcodePrint 6.13.110
Smart Indenter could be what you're looking for? You'd load the result into Notepad++, set language to VB and save as .rtf/.doc (or print to file, can't remember off the top of my head).
For a more modern approach, Sublime Text users can install ExportHTML from Package Control. This has the added benefit of being able to include the line numbers, and changing the code coloration.
HTML files can be opened directly within Word.
Highlight supports a wide range of Operating Systems and 150+ languages including Visual Basic, although I'm not sure about VBA.
I would recommend this one: planetB
It works well with Internet Explorer (didn't work wit Firefox for me, not sure abt Chrome).
Plus it's online, so no need to install anything (the case of Company/University PC's)
Regards
Wheeliam
The following works with Visual Studio Code:
Start VS Code.
New file.
Copy & Paste the VBA code into the VS Code window.
In the lower right-hand corner, click on "Plain Text" and select "Visual Basic" instead. Note that the code is now syntax-highlighted.
Copy & Paste the formatted code into Word.