Skip to content

Commit

Permalink
deploy: c13308a
Browse files Browse the repository at this point in the history
  • Loading branch information
Guldoman committed Sep 11, 2023
1 parent 164844a commit d397994
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
14 changes: 8 additions & 6 deletions en/tutorials/simple-plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ <h3 id="format-of-the-tutorial">Format of the tutorial</h3>
of the code in the file does.</p>

<h3 id="the-code">The code :</h3>
<pre><span class="c1">-- mod-version:2 -- lite-xl 2.0</span>
<pre><span class="c1">-- mod-version:3</span>

<span class="c1">-- you MUST put mod-version:x on the first line of your plugin</span>
<span class="c1">-- mod-version usually maps to lite-xl releases (eg. mod-version: 2 == lite-xl 2.0)</span>
Expand Down Expand Up @@ -235,12 +235,14 @@ <h3 id="the-code">The code :</h3>
<span class="c1">-- * a function that takes the "input" as its argument</span>
<span class="c1">-- (NOTE: here the variable we are reading input into is `text`)</span>
<span class="p">[</span><span class="s2">"simple:setshow"</span><span class="p">]</span> <span class="o">=</span> <span class="k">function</span><span class="p">()</span>
<span class="n">core</span><span class="p">.</span><span class="n">command_view</span><span class="p">:</span><span class="n">enter</span><span class="p">(</span><span class="s2">"Test to display"</span><span class="p">,</span> <span class="k">function</span><span class="p">(</span><span class="n">text</span><span class="p">)</span>
<span class="n">config</span><span class="p">.</span><span class="n">plugins</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">hw_message</span> <span class="o">=</span> <span class="n">text</span>
<span class="n">config</span><span class="p">.</span><span class="n">plugins</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">show_my_message</span> <span class="o">=</span> <span class="kc">true</span>
<span class="k">end</span><span class="p">)</span>
<span class="n">core</span><span class="p">.</span><span class="n">command_view</span><span class="p">:</span><span class="n">enter</span><span class="p">(</span><span class="s2">"Test to display"</span><span class="p">,</span> <span class="p">{</span>
<span class="n">submit</span> <span class="o">=</span> <span class="k">function</span><span class="p">(</span><span class="n">text</span><span class="p">)</span>
<span class="n">config</span><span class="p">.</span><span class="n">plugins</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">hw_message</span> <span class="o">=</span> <span class="n">text</span>
<span class="n">config</span><span class="p">.</span><span class="n">plugins</span><span class="p">.</span><span class="n">simple</span><span class="p">.</span><span class="n">show_my_message</span> <span class="o">=</span> <span class="kc">true</span>
<span class="k">end</span>
<span class="p">})</span>
<span class="k">end</span>
<span class="p">}</span>
<span class="p">})</span>
<span class="c1">-----------------------------------------------------------------------</span>
<span class="c1">-- Just for fun, let's assign our commands their own keybindings.</span>
<span class="c1">-- Here, we assign the keybinding the same string(its name) as the one</span>
Expand Down
2 changes: 1 addition & 1 deletion posts.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions sitemap.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
https://lite-xl.com
https://lite-xl.com/en/404.html
https://lite-xl.com/en/tutorials/syntax-highlighting.html
https://lite-xl.com/en/tutorials/simple-plugin.html
https://lite-xl.com/en/tutorials/overview/regex.html
https://lite-xl.com/en/tutorials/overview/process.html
https://lite-xl.com/en/tutorials/overview/system.html
https://lite-xl.com/en/tutorials/index.html
https://lite-xl.com/en/tutorials/system-fonts.html
https://lite-xl.com/en/tutorials/simple-plugin.html
https://lite-xl.com/en/tutorials/api-overview.html
https://lite-xl.com/en/tutorials/index.html
https://lite-xl.com/en/tutorials/overview/system.html
https://lite-xl.com/en/tutorials/overview/process.html
https://lite-xl.com/en/tutorials/overview/regex.html
https://lite-xl.com/en/index.html
https://lite-xl.com/en/documentation/keymap.html
https://lite-xl.com/en/documentation/usage.html
https://lite-xl.com/en/documentation/index.html
https://lite-xl.com/en/documentation/build.html
https://lite-xl.com/en/documentation/keymap-macos.html
https://lite-xl.com/en/404.html
https://lite-xl.com/en/about/index.html
https://lite-xl.com/en/about/features.html
https://lite-xl.com/en/about/screenshots.html
https://lite-xl.com/en/about/faq.html
https://lite-xl.com/en/about/screenshots.html
https://lite-xl.com/en/about/contributors.html
https://lite-xl.com/en/about/index.html
https://lite-xl.com/en/documentation/build.html
https://lite-xl.com/en/documentation/keymap-macos.html
https://lite-xl.com/en/documentation/keymap.html
https://lite-xl.com/en/documentation/index.html
https://lite-xl.com/en/documentation/usage.html
https://lite-xl.com/en/downloads.html
https://lite-xl.com/en/index.html

0 comments on commit d397994

Please sign in to comment.