EasyCoder documentation

    

Commands

EasyCoder has a set of commands that divide into one or more packages, here referred to as domains. Sometimes the same command occurs in more than one domain because it has a meaning specific to that domain. There are a number of domains that you can select from the buttons above.

Core commands

These commands form the core of any programming language; variables, simple arithmetic and string handling, flow control and timing. They are built into the main EasyCoder JavaScript file.

All other domains are supplied as plugins. These can be loaded at the start, where they provide functions that recognize any of their command keywords. There is also the option to download and install extra plugins, then load scripts, compile and run them. See the Plugins section of the documentation.

Browser commands

The Browser plugin contains commands that apply to the visual environment offered by the browser. They deal with the on-screen elements; their content, attributes and behaviors.

JSON commands

The JSON plugin contains commands that allow a script to communicate with web servers, retrieve JSON-formatted data then process and display it.

Graphics commands

The SVG plugin contains graphical commands that make use of a limited subset of SVG and allow you to create and animate illustrations based on simple graphic primitives; circles, ellipses, rectangles, lines and text. See Examples for samples of usage.

CKEditor commands

The CKEditor plugin contains commands that allow a script to display a Rich Text Editor and retrieve data from it. It uses the Open Source CKEditor library and is particularly useful if you want to offer an HTML editor as part of your page.

UI commands

The UI plugin contains commands that create and manage complex UI elements such as Date/Time widgets.

Other plugins

A plugin is simply a wrapper for some JavaScript code. We are planning to add more, such as one for Google Maps which will let you embed a map in your page and operate on it.

Anyone who understands the structure of EasyCoder can add their own plugins, and since EasyCoder is Open Source you can go to our GitHub account and view the code to find out how it's done. Plugins can be hosted anywhere, or if they are free you can ask us to add them to the core product, where they will be available to everyone. You will have to host non-free plugins yourself; similarly for plugins that do not conform to WordPress requirements, such as ones that collect user data.

The advantage to the owner of significant JavaScript functionality such as Google Maps is that by offering it as an EasyCoder plugin you are making it usable by a much wider spectrum of people than just professional programmers. Rather than requiring the user to employ JavaScript skills to work out how to use your code you devise a set of English-like instructions that can be understood by domain experts. Remember that a high proportion of WordPress page owners are not and never will be programmers and many would prefer not to pay for programming to be done on their behalf if there's an easier way.