This page will present a couple of different setups that can be used for creating scripts.

A good setup can make the activity more comfortable and efficient. On the other hand, if you are still creating just simple scripts, an advanced setup will be overkill, and a basic setup will offer all you need.

The setups will be divided in 3 levels, for mere didactic reasons: Basic; Intermediate; and Advanced.


"Edit Script"

Inside FreePlane you will find the "Edit Script" tool. It was used in some examples at this Tutorial, where you can learn how it works. An advantage of this setup is that it offers a console, which can be useful to understand how your script interacts with FreePlane.

Text editor

This setup was mentioned in this introductory guide.


Groovy Console

The Groovy Console Add-on looks similar to the "Edit Script" tool, but it's more powerful. There are some useful tools, like the inspector of variables.

IDE (simple version, without debugging)

Creating the script inside an integrated development environment (IDE) is helpful because it has many tools dedicated to writing code, like autocompletion. This guide shows how to set the IDE for that purpose.

Complementary resources, if you get stuck in the guide:

This forum discussion may help

This is another approach

Advanced (debugging)

With debugging tools, you can very clearly see how your script interacts with Freeplane, which allows spotting the exact lines of code that are not working correctly.

This page has the most recent and easiest steps to set the IDE.

Complementary resources:

This forum discussion may help clarify the guide and bring different ways to achieve the same things.

If you want to read more about using Gradle in Freeplane and in Add-ons, take a look at this, this and this.