Scripts Snippets

Hello,

Could you explain a bit more how to use custom (user-defined) code snippets ?

From what I tested :

  • If I create a code snippet it remains "local" to the script it has been created from. I can not see it when editing another script. It kinda limits the value of that functionality (which sounds very nice btw)
  • I can not find the snippet anywhere in various dopus folders (/dopusdata, /dopusglobaldata, /dopuslocaldata)
  • The /dopusdata/Script Snippets remains empty when I create a snippet, and don't really understand what the documentation means by "You can add your own languages by duplicating one of the standard language files in the /dopusdata/Script Snippets folder" (https://docs.dopus.com/doku.php?id=scripting:script_editor:snippets)

[Edit : Only tested with JScript]

Many thanks in advance.

Retested again tonight ... and it's now working !
It's really strange, because yesterday, I could not get any file to be created by DOpus in the /dopusdata/Script Snippet ... I even tried to put some (js files, expecting the file name to be associated to the snippet name).

And now, when I create a snippet, JScript.js.xml is created or updated.

I did 2 things in between : unplugged USB key I exported DOpus 12 before switching to beta, and fully restarting DOpus (systray icon + exit, then launch).

Anyway, everything works as expected ... except maybe the inability to use snippets in script buttons which could have been nice :wink: but I guess there might be a reason behind it, I guess I will live with it.