« Sandbox » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
== Pre without <nowiki><source></nowiki> == | == SyntaxHighlight_GeSHi test == | ||
=== Pre without <nowiki><source></nowiki> === | |||
# | # | ||
# French UTF-8 Users Accunts. | # French UTF-8 Users Accunts. | ||
Ligne 7 : | Ligne 8 : | ||
:lang=fr_FR.UTF-8:\ | :lang=fr_FR.UTF-8:\ | ||
:tc=default: | :tc=default: | ||
# | # | ||
# English UTF-8 Users Accunts. | # English UTF-8 Users Accunts. | ||
Ligne 16 : | Ligne 17 : | ||
:tc=default: | :tc=default: | ||
== FreeBSD: how to add UTF-8 accounts classes to /etc/login.conf == | === FreeBSD: how to add UTF-8 accounts classes to /etc/login.conf === | ||
<source lang="text"> | <source lang="text"> | ||
# | # | ||
Ligne 35 : | Ligne 36 : | ||
</source> | </source> | ||
== TCL: read info from sqllite == | === TCL: read info from sqllite === | ||
;In the config part | |||
<source lang="tcl"> | <source lang="tcl"> | ||
#The database containing mac information | #The database containing mac information | ||
Ligne 47 : | Ligne 48 : | ||
</source> | </source> | ||
;In the procedural part | |||
<source lang="tcl"> | <source lang="tcl"> | ||
#Loads database information | #Loads database information | ||
Ligne 61 : | Ligne 62 : | ||
} | } | ||
</source> | </source> | ||
== Poem test == | |||
<poem> | |||
As I roll the Dice | |||
The Ilithid cut in twain | |||
I rolled a twenty | |||
--Loki from Mebane, North Carolina | |||
</poem> | |||
== Cite test == | |||
Lorem ipsum dolor<ref>Faux-texte, qu'un imprimeur composa à partir d'un écrit de Cicéron</ref> sit nunc abuntur<ref>L'on quitte ici le texte original</ref>. | |||
<references /> |
Version du 25 décembre 2010 à 14:02
SyntaxHighlight_GeSHi test
Pre without <source>
# # French UTF-8 Users Accunts. # french|French UTF-8 Users Accounts:\ :charset=UTF-8:\ :lang=fr_FR.UTF-8:\ :tc=default: # # English UTF-8 Users Accunts. # english|English UTF-8 Users Accounts:\ :charset=UTF-8:\ :lang=en_US.UTF-8:\ :tc=default:
FreeBSD: how to add UTF-8 accounts classes to /etc/login.conf
#
# French UTF-8 Users Accunts.
#
french|French UTF-8 Users Accounts:\
:charset=UTF-8:\
:lang=fr_FR.UTF-8:\
:tc=default:
#
# English UTF-8 Users Accunts.
#
english|English UTF-8 Users Accounts:\
:charset=UTF-8:\
:lang=en_US.UTF-8:\
:tc=default:
TCL: read info from sqllite
- In the config part
#The database containing mac information
#You can so hide a MAC address you don't want to print
#or gives it a custon name.
set macs(db) /tmp/pamela.db
#Path to libtclsqlite.so, if it's needed to manually load it
set macs(libtclsqlite) "/usr/local/lib/sqlite/libtclsqlite.so"
- In the procedural part
#Loads database information
if {[info exists macs(db)] && $macs(db) != ""} {
if {[info exists macs(libtclsqlite)] && $macs(libtclsqlite) != ""} {
load $macs(libtclsqlite)
} {
package require sqlite
}
sqlite db $macs(db)
set macs(knownmacs) [db eval {SELECT * FROM knownmacs}]
db close
}
Poem test
As I roll the Dice
The Ilithid cut in twain
I rolled a twenty
--Loki from Mebane, North Carolina