PLUG'N SCRIPT
rapid plugin development
Tutorial
DSP
KUIML
How-to
Scripts
  • Overview
  • Tutorial
  • Reference
  • Built-in variables
  • Runtime model
  • Parameters mapping
  • Script converter
  • LetiMix
KUIMLScript converter
July 30, 2025

Convert inline ↔ standalone

This online converter helps you convert your script to inline and back to normal.

Additional help

Standalone scripts are saved in separate text files (file extension doesn't matter) and can be loaded via:

  1. <SCRIPT src="my_script.as" />

or (for build-time scripting inside VARIABLE):

  1. <SKIN build_time_script_include="build_time_helpers.as">

Standalone scripts don't require any "escaping" (replacing special characters).

Inline scripts can be used like this:

  1. // declare variables, classes and functions inside SCRIPT
  2. <SCRIPT script="int my_global_var = 123; void myFunction() { ... }; " />

  3. // write scripts in ACTION
  4. <ACTION id="myAction" type="Script" script="if (a &lt; b) { doStuff(); }" />

  5. // execute scripts directly from ACTION_TRIGGER
  6. <ACTION_TRIGGER event_id="..." script="if (!blocked) { doStuff(); } " />

  7. // write render scripts for CANVAS
  8. <CANVAS render_script="doMyRender()" ... />

  9. // write render scripts for GL_OBJECT_3D
  10. <GL_OBJECT_3D render_script="my3DRenderScript();" ... />

  11. // write build-time scripts inside VARIABLEs
  12. <VARIABLE id="IS_WIN" script='return ("$_SYSTEM_TYPE_$"=="Windows")?"1":"0"' />

Inline you have to use special characters instead of ", <, &, and use only /* such comments */. 

Notice, that if you use single quotes for the script (like in the VARIABLE example above), you can avoid escaping regular quotes, which if often very handy.

How to convert manually

To convert standalone script to inline you have to:

  • replace < with &lt; 
  • replace " with &quot; (inside single quotes can be left untouched)
  • replace ' with &#39; (if used inside single quotes)
  • replace & with &amp;
  • instead of // comments use /* comments */

About converter

This online tool is in experimental state, though we use it a lot for our own projects. If you find any bugs in this converter, feel free to report.


Comments

Please, authorize to view and post comments.

2020 - 2025 © Site by LetiMix · Donate  |  Plug'n Script and KUIML by Blue Cat Audio