Write down JavaScript helper functions to use in your snippets here. <a href="All JavaScript functions should return the contents you want to place in a template field as a string.<br>Functions are called in a scope which contains the contents of all editable template fields as local variables. For example in a snippet containing <tt>${field}</tt>, a variable called <tt>field</tt> will be present which contains the up-to-date contents of the template field. Those variables can either be used in the function statically or passed as arguments, by using the <tt>${func(field)}</tt> or <tt>${field2=func(field)}</tt> syntax in the snippet string.<br>You can use the kate scripting API to get the selected text, full text, file name and more by using the appropriate methods of the <tt>document</tt> and <tt>view</tt> objects. Refer to the scripting API documentation for more information.">More...</a>
اكتب هنا دوال جافاسكربت المساعدة التي ستستخدمها في قصاصاتك. <a href="يجب أن تُرجع كل دوال جافاسكربت المحتويات التي تريد وضعها في حقل قالب كسلسلة.<br>الدوال تُستدعى في مجال حيث يحوي محتويات كلّ حقول القوالب التي يمكن تحريرها كمتغيّرات محليّة. فمثلًا في القصاصة التي تحوي <tt>${field}</tt>، سيتواجد متغيّر بالاسم <tt>field</tt> ليحوي محتويات الحقل القالب محدّثة. يمكن استخدام هذه المتغيّرات في الدوال كما هي أو تمريرها كمعطيات، وذلك باستخدام صياغة <tt>${func(field)}</tt> أو <tt>${field2=func(field)}</tt> في سلسلة القصاصة.<br>يمكنك استخدام واجهة برمجة التّطبيقات لسكربتة كيت لتحصل على النّصّ المحدّد، والنّصّ بالكامل، واسم الملف وغيرها باستخدام دوال الأصناف المناسبة لكائنيّ <tt>document</tt> و<tt>view</tt>. راجع توثيق واجهة برمجة التّطبيقات للسّكربتة لمعلومات أخرى.">المزيد...</a>