« IRC Colors en JavaScript » : différence entre les versions

aucun résumé des modifications
Aucun résumé des modifications
Aucun résumé des modifications
 
Ligne 63 : Ligne 63 :
Red text on a blue background would be:
Red text on a blue background would be:


<code>bot.say("#canal", "\x0304,02Example\x03")</code>
<syntaxhighlight lang="javascript">bot.say("#canal", "\x0304,02Example\x03")</syntaxhighlight>


==Other formatting==
==Other formatting==
Ligne 91 : Ligne 91 :


== Function JavaScript converter ==
== Function JavaScript converter ==
<pre>
<syntaxhighlight lang="javascript">
function formattingColorIRC(str) {
function formattingColorIRC(str) {


Ligne 114 : Ligne 114 :
      
      
formattingColorIRC("�0,4test"); //Result=\x030,4test
formattingColorIRC("�0,4test"); //Result=\x030,4test
</pre>
</syntaxhighlight>


==Mots clés==
==Mots clés==
control characters, IRC colors, IRC colours, caret notation, irc colors javascript, converter irc colors for irc bot javascript or tcl
control characters, IRC colors, IRC colours, caret notation, irc colors javascript, converter irc colors for irc bot javascript or tcl