Commit bbdb00c1 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier Committed by Christoph Cullmann
Browse files

Add a bit on non-obvious internals of snippet-scripts.

parent 9458001f
Pipeline #195732 passed with stage
in 5 minutes and 34 seconds
......@@ -3434,7 +3434,12 @@ the <ulink url="help:/katepart/dev-scripting.html#dev-scripting-api">&kate; scri
to get the selected text, full text, file name and
more by using the appropriate methods of the <userinput>document</userinput>
and <userinput>view</userinput> objects. Refer to the scripting API
documentation for more information</para>
documentation for more information.</para>
<para>For more complex scripts it may be important to understand that
<emphasis>first</emphasis>, the raw snippet is inserted into the document, and <emphasis>then</emphasis>
functions are being evaluated. E.g., if a function retrieves the text on the
line where the snippet is being inserted, that text will also contain
<userinput>${functionCall()}</userinput>.</para>
</listitem>
</varlistentry>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment