Jinja2 template support in Eclipse - eclipse

Using the Eclipse keybinding Shift-Ctrl+F (Format) in Python (with help from PyDev), Javascript or plain HTML files works as expected.
Jinja2 templates however, become a mess. Is there a solution to solve or easily work around this?

As Jinja2 seems very close to Django templates, it may be worth using the Django templates editor (it's distributed along with Aptana Studio 3 -- you just have to change the file association to open html files with that editor in the file association).

Related

Eclipse Markdown Preview Editor brooken?

Using eclipse: Version: 2019-06 (4.12.0) Build id: 20190614-1200. On Ubuntu 19.10.
I have installed the Eclipse Markdown Editor in eclipse:
https://marketplace.eclipse.org/content/markdown-text-editor#group-screenshots
But seems the preview editor is broken - it cannot render tables:
I looks fine when I push the README.md to bitbucket:
So Markdown is correct. Maybe.
https://marketplace.eclipse.org/content/markdown-text-editor#group-screenshots
is still in alpha state and there are better/more mature markdown editors for eclipse?
UPDATE:
Works out of the box in VS Code:
Maybe not strictly following the markdown specification but I guess 99.99% of users (including me) does not care about that and basically just want same behavior as github/bitbucket.E.g.(unless you want to pay):
http://www.wayneparrott.com/best-markdown-tool-for-eclipse/
So another bullet in the good old eclipse coffin/IDE.
On a side note also tried the github flavored markdown plugin for eclipse but for some reason its not compatible with my version of eclipse - yet another example of a problem you would not really expect to have to investigate for a modern IDE:
so that plugin is too fragile.

Laravel auto formatting for Netbeans

I'm using Laravel on Netbeans but any time that I use auto format (alt shift f) it messes up my code formatting. I know that I can edit each setting individually in Netbeans but that could take hours and never be complete. Is there an easy way for Netbeans to adapt to my files, or is there a settings file somewhere that I can import into Netbeans?
The only one I could find is this:
http://forumsarchive.laravel.io/viewtopic.php?id=13032
But it doesnt work. It messes up my blade templates and my routes file gets formatted differently.
Thanks!
For Laravel on PHPStorm I'm using php-cs-fixer plugin. For me, It's perfect toool for formatting.
Here you can find this plugin for Netbeans.
Also, you can install php-cs-fixer on your machine and run it from console. Git repository of php-cs-fixer.

How to configure nodeclipse for auto completion?

I have just installed this eclipse plugin. But I found it can neither show a list of functions when typing '.', nor use templates like 'if...else...'.
Read http://www.nodeclipse.org/ carefully
Features Creating default structure for New Node
Project and New Node Source File Generating Express project
with Wizard JavaScript Syntax highlighting Bracket
matching and marking selection occurences with background color
Content Assistant within one file Go to definition with
Ctrl+click when JSDoc is
used Refactoring within one file
(Alt+Shift+R) JSON files highlight and
validation NPM support Debugging - Breakpoint,
Trace, Variables, Expressions, etc... via Eclipse debugger plugin for
V8 Setting project properties for JSHint-Eclipse
automatically; JSHint
settings template
Passing arguments to Node application and Node.js,
specifying environment variables values to use Running
CoffeeScript *.coffee files Running *.js files with
PhantomJS, MongoDB Shell or Java 8 Nashorn jjs util
Bundled together with Markdown Editor, GitHub Flavored Markdown,
StartExplorer (for system explorer and shell), RegEx, Icon Editor,
MongoDB, RestClient Tool and other plugins (20+ in total, check
update site and Nodeclispe Plugin
List) Support for Eclipse Juno, Kepler, Luna M3
As of 0.7 completion work as standard JSDT functionality, that is
for objects defined in the same class,
for objects annotated with with JSDoc
If you want more, do it yourself with help from the other people.
I suggest you that you install tern.java which uses the powerful JavaScript inference engine tern.js. You have a node.js module which provides node.js completion. As Nodeclipse editor is based on JSDT, you can use it with tern.

jade templating syntax support for eclipse?

I have just starting using the nodejs templating engine jade. Unfortunately my IDE eclipse doesn't seem to have support for this syntax and is not highlighting correctly.
Is it possible to add support for .jade files to eclipse?
As current lead of Nodeclipse effort www.nodeclipse.org I announce that Nodeclipse v0.12 has added Minimalist Jade Editor, see http://www.nodeclipse.org/history. Added just before release as I got sick of .jade to be opened outside of Eclipse.
#134 - Minimalist Jade Editor
idea is to define HTML tags and JavaScript keywords as words for highlight in Word.java
and then use it together with EditBox
Nodeclipse scope is growing, now it has Gradle for Android and JavaScript in general that I want to work on for next iteration. Also looking for developers and company willing to support the project. Raise an issue on GitHub/Nodeclipse to continue.
check if this helps
Jade-syntax-highlight
Follow the pattern used for adding HAML support to an Eclipse install, and find a lexer and colorizer for Jade.

Format freemarker files in Eclipse

Actually we have freemarker files (ftl) under Eclipse + Freemarker plugin (from JBoss).
Do you know a way to format ftl files ?
Thanks
For ftl files that represent HTML configuring eclipse to open the HTML Editor works nicely. The HTML Editor has formatting capability as asked for. Todo configure eclipse to open ftl files with the HTML Editor you can use "open with" and there you'll get offered to link the HTML Editor permanently to the ftl extension:
In the Content Types Preferences Page you can than actually add the *.ftl extension:
I looked for a formatting tool a few months ago and I was unable to find any such tools. To my knowledge there no such tools currently available, just the syntax highlighting you mentioned.
Associated the ftl file extension with your web page editor (assuming you have wtp already installed).
An old question. I had the same problem for some time now, the default html editor contains some irritating features when working on freemarker templates, especially when using the bracket syntax.
Aptana studio eclipse plugin solves most of the problems:
http://www.aptana.com/products/studio3/download