mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
doc: capitalize name of plugins in lists (scripting guide)
This commit is contained in:
@@ -119,7 +119,7 @@ Argumente:
|
||||
|
||||
Beispielskripten, für jede Sprache:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -129,7 +129,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test Skript", "", "
|
||||
weechat.prnt("", "Hallo, von einem python Skript!")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -137,7 +137,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Test Skript", "", ""
|
||||
weechat::print("", "Hallo, von einem perl Skript!");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -148,7 +148,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -156,7 +156,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Test Skript", "", "")
|
||||
weechat.print("", "Hallo, von einem lua Skript!")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -164,7 +164,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Test Skript" "" ""
|
||||
weechat::print "" "Hallo, von einem tcl Skript!"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -172,7 +172,7 @@ weechat::print "" "Hallo, von einem tcl Skript!"
|
||||
(weechat:print "" "Hallo, von einem scheme Skript!")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -298,7 +298,7 @@ nicht um einen Pointer).
|
||||
|
||||
callback Beispiele, für jede Skriptsprache:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -309,7 +309,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -322,7 +322,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -334,7 +334,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -346,7 +346,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -358,7 +358,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -370,7 +370,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
@@ -114,7 +114,7 @@ Arguments:
|
||||
|
||||
Example of script, for each language:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -124,7 +124,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "
|
||||
weechat.prnt("", "Hello, from python script!")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -132,7 +132,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Test script", "", ""
|
||||
weechat::print("", "Hello, from perl script!");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -143,7 +143,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -151,7 +151,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Test script", "", "")
|
||||
weechat.print("", "Hello, from lua script!")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -159,7 +159,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Test script" "" ""
|
||||
weechat::print "" "Hello, from tcl script!"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -167,7 +167,7 @@ weechat::print "" "Hello, from tcl script!"
|
||||
(weechat:print "" "Hello, from scheme script!")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -286,7 +286,7 @@ this "data" is a string with a any value (it's not a pointer).
|
||||
|
||||
Example of callback, for each language:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -297,7 +297,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -310,7 +310,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -322,7 +322,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -334,7 +334,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -346,7 +346,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -358,7 +358,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
@@ -117,7 +117,7 @@ Paramètres :
|
||||
|
||||
Exemple, pour chaque langage :
|
||||
|
||||
* python :
|
||||
* Python :
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -127,7 +127,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Script de test", ""
|
||||
weechat.prnt("", "Bonjour, du script python !")
|
||||
----
|
||||
|
||||
* perl :
|
||||
* Perl :
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -135,7 +135,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Script de test", "",
|
||||
weechat::print("", "Bonjour, du script perl !");
|
||||
----
|
||||
|
||||
* ruby :
|
||||
* Ruby :
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -146,7 +146,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua :
|
||||
* Lua :
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -154,7 +154,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Script de test", "", "
|
||||
weechat.print("", "Bonjour, du script lua !")
|
||||
----
|
||||
|
||||
* tcl :
|
||||
* Tcl :
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -162,7 +162,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Script de test" "" ""
|
||||
weechat::print "" "Bonjour, du script tcl !"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -170,7 +170,7 @@ weechat::print "" "Bonjour, du script tcl !"
|
||||
(weechat:print "" "Bonjour, du script scheme !")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -296,7 +296,7 @@ valeur (ce n'est pas un pointeur).
|
||||
|
||||
Exemple de callback, pour chaque langage :
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -307,7 +307,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -320,7 +320,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -332,7 +332,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -344,7 +344,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -356,7 +356,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -368,7 +368,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
@@ -122,7 +122,7 @@ Argomenti:
|
||||
|
||||
Esempio di script, per ogni linguaggio:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -132,7 +132,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "
|
||||
weechat.prnt("", "Hello, from python script!")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -140,7 +140,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Test script", "", ""
|
||||
weechat::print("", "Hello, from perl script!");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -151,7 +151,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -159,7 +159,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Test script", "", "")
|
||||
weechat.print("", "Hello, from lua script!")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -167,7 +167,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Test script" "" ""
|
||||
weechat::print "" "Hello, from tcl script!"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -175,7 +175,7 @@ weechat::print "" "Hello, from tcl script!"
|
||||
(weechat:print "" "Hello, from scheme script!")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -300,7 +300,7 @@ valore (non è un puntatore).
|
||||
|
||||
Esempio di callback, per ogni linguaggio:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -311,7 +311,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -324,7 +324,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -336,7 +336,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -348,7 +348,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -360,7 +360,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -372,7 +372,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
@@ -116,7 +116,7 @@ weechat.register(name, author, version, license, description, shutdown_function,
|
||||
|
||||
各言語で書かれたスクリプトの例:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -126,7 +126,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Test script", "", "
|
||||
weechat.prnt("", "Hello, from python script!")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -134,7 +134,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Test script", "", ""
|
||||
weechat::print("", "Hello, from perl script!");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -145,7 +145,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -153,7 +153,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Test script", "", "")
|
||||
weechat.print("", "Hello, from lua script!")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -161,7 +161,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Test script" "" ""
|
||||
weechat::print "" "Hello, from tcl script!"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -169,7 +169,7 @@ weechat::print "" "Hello, from tcl script!"
|
||||
(weechat:print "" "Hello, from scheme script!")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -290,7 +290,7 @@ C コールバックはポインタ型の "data" 引数を利用します。ス
|
||||
|
||||
各プログラミング言語でコールバックを利用する例:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -301,7 +301,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -314,7 +314,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -326,7 +326,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -338,7 +338,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -350,7 +350,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -362,7 +362,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
@@ -120,7 +120,7 @@ Argumenty:
|
||||
|
||||
Przykład dla skryptu w każdym z języków:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -130,7 +130,7 @@ weechat.register("test_python", "FlashCode", "1.0", "GPL3", "Skrypt testowy", ""
|
||||
weechat.prnt("", "Witaj z pythonowego skryptu!")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -138,7 +138,7 @@ weechat::register("test_perl", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "",
|
||||
weechat::print("", "Witaj z perlowego skryptu!");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -149,7 +149,7 @@ def weechat_init
|
||||
end
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -157,7 +157,7 @@ weechat.register("test_lua", "FlashCode", "1.0", "GPL3", "Skrypt testowy", "", "
|
||||
weechat.print("", "Witaj ze skryptu lua!")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -165,7 +165,7 @@ weechat::register "test_tcl" "FlashCode" "1.0" "GPL3" "Skrypt testowy" "" ""
|
||||
weechat::print "" "Witaj ze skryptu tcl!"
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -173,7 +173,7 @@ weechat::print "" "Witaj ze skryptu tcl!"
|
||||
(weechat:print "" "Witaj ze skryptu scheme!")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
@@ -291,7 +291,7 @@ Callbacki C używają argumentu "data", który jest wskaźnikiem. W API skryptó
|
||||
|
||||
Przykłady callbacków dla każdego języka:
|
||||
|
||||
* python:
|
||||
* Python:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
@@ -302,7 +302,7 @@ def timer_cb(data, remaining_calls):
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* perl:
|
||||
* Perl:
|
||||
|
||||
[source,perl]
|
||||
----
|
||||
@@ -315,7 +315,7 @@ sub timer_cb {
|
||||
weechat::hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* ruby:
|
||||
* Ruby:
|
||||
|
||||
[source,ruby]
|
||||
----
|
||||
@@ -327,7 +327,7 @@ end
|
||||
Weechat.hook_timer(1000, 0, 1, "timer_cb", "test");
|
||||
----
|
||||
|
||||
* lua:
|
||||
* Lua:
|
||||
|
||||
[source,lua]
|
||||
----
|
||||
@@ -339,7 +339,7 @@ end
|
||||
weechat.hook_timer(1000, 0, 1, "timer_cb", "test")
|
||||
----
|
||||
|
||||
* tcl:
|
||||
* Tcl:
|
||||
|
||||
[source,tcl]
|
||||
----
|
||||
@@ -351,7 +351,7 @@ proc timer_cb { data remaining_calls } {
|
||||
weechat::hook_timer 1000 0 1 timer_cb test
|
||||
----
|
||||
|
||||
* guile (scheme):
|
||||
* Guile (scheme):
|
||||
|
||||
[source,lisp]
|
||||
----
|
||||
@@ -363,7 +363,7 @@ weechat::hook_timer 1000 0 1 timer_cb test
|
||||
(weechat:hook_timer 1000 0 1 "timer_cb" "test")
|
||||
----
|
||||
|
||||
* javascript:
|
||||
* Javascript:
|
||||
|
||||
[source,javascript]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user