Tesztoldal
A MathWikiből
(Változatok közti eltérés)
(7 szerkesztő 42 közbeeső változata nincs mutatva) | |||
1. sor: | 1. sor: | ||
− | + | {| align="right" style="border: 1px solid #aaa; background-color: #f0f9ff; font-size: 90%;" | |
+ | ! colspan="2" style="text-align: center; font-size: larger;" |'''Példa táblázatra''' | ||
+ | |- | ||
+ | |style="text-align: right;"|'''jobbra''' | ||
+ | |és balra igazított cellákkal | ||
+ | |- | ||
+ | |style="text-align: right;"|'''akár''' | ||
+ | |több sorban is | ||
+ | |- | ||
+ | |keret | ||
+ | |is van már | ||
+ | |- | ||
+ | |style="text-align: right;"|és | ||
+ | |style="text-align: right;"|halovány kék háttér | ||
+ | |- | ||
+ | |} | ||
− | + | egy úsztatott táblázat | |
− | + | ||
− | + | ||
− | + | ||
− | + | Ez meg egy syntax highlighting, ha sikerül: | |
− | < | + | <bash> |
− | + | #!/bin/bash | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | POSTFIX_MAIN=/etc/postfix/main.cf | |
+ | POSTFIX_VIRTUAL=/etc/postfix/virtual | ||
+ | BIND_CONF=/etc/bind/named.conf.local | ||
+ | BIND_DIR=/etc/bind | ||
− | + | #POSTFIX_MAIN=main.cf | |
+ | #POSTFIX_VIRTUAL=virtual | ||
+ | #BIND_CONF=named.conf.local | ||
+ | #BIND_DIR=$PWD | ||
+ | |||
+ | |||
+ | my_read(){ local L_DATA | ||
+ | echo -n "$1 " | ||
+ | OISF="$IFS" | ||
+ | IFS=S'\n' | ||
+ | read L_DATA | ||
+ | eval "$2=\"$L_DATA\"" | ||
+ | IFS="$OIFS" | ||
+ | } | ||
+ | </bash> | ||
+ | |||
+ | |||
+ | Python kód teszt: | ||
+ | <python> | ||
+ | def fv(x,y): | ||
+ | for i in range(len(x)): | ||
+ | x[i] = x[i] * y | ||
+ | return x | ||
+ | </python> | ||
+ | |||
+ | <c> | ||
+ | #include <stdio.h> | ||
+ | int main(){ | ||
+ | } | ||
+ | </c> | ||
+ | |||
+ | <math>x^2</math> | ||
+ | |||
+ | {| class="wikitable" style="text-align:center; width:80%;" | ||
+ | |+ Table caption | ||
+ | |- | ||
+ | | | ||
+ | ! scope="col" | Header col. A | ||
+ | ! scope="col" | Header col. B | ||
+ | ! scope="col" | Header col. D | ||
+ | |- | ||
+ | ! scope="row" | Header row 1 | ||
+ | |cell R1-A | ||
+ | |cell R1-B | ||
+ | |cell R1-D | ||
+ | |- | ||
+ | ! scope="row" | Header row 2 | ||
+ | |cell R2-A | ||
+ | |cell R2-B | ||
+ | |cell R2-D | ||
+ | |- | ||
+ | ! scope="row" | Header row 4 | ||
+ | |cell R4-A | ||
+ | |cell R4-B | ||
+ | |cell R4-D | ||
+ | |} | ||
+ | |||
+ | Python tutor visualize example: | ||
+ | <wikiframe style="border: #c00 4px dotted;" width="1000" height="1000" frameborder="0" src="http://pythontutor.com/iframe-embed.html#code=x+%3D+%5B1,+2,+3%5D%0Ay+%3D+%5B4,+5,+6%5D%0Az+%3D+y%0Ay+%3D+x%0Ax+%3D+z%0A%0Ax+%3D+%5B1,+2,+3%5D+%23+a+different+%5B1,+2,+3%5D+list!%0Ay+%3D+x%0Ax.append(4)%0Ay.append(5)%0Az+%3D+%5B1,+2,+3,+4,+5%5D+%23+a+different+list!%0Ax.append(6)%0Ay.append(7)%0Ay+%3D+%22hello%22%0A%0A%0Adef+foo(lst)%3A%0A++++lst.append(%22hello%22)%0A++++bar(lst)%0A%0Adef+bar(myLst)%3A%0A++++print(myLst)%0A%0Afoo(x)%0Afoo(z)&cumulative=false&heapPrimitives=false&drawParentPointers=false&textReferences=false&showOnlyOutputs=false&py=2&curInstr=0&codeDivWidth=350&codeDivHeight=400"> </wikiframe> |
A lap jelenlegi, 2014. február 16., 22:10-kori változata
Példa táblázatra | |
---|---|
jobbra | és balra igazított cellákkal |
akár | több sorban is |
keret | is van már |
és | halovány kék háttér |
egy úsztatott táblázat
Ez meg egy syntax highlighting, ha sikerül:
#!/bin/bash POSTFIX_MAIN=/etc/postfix/main.cf POSTFIX_VIRTUAL=/etc/postfix/virtual BIND_CONF=/etc/bind/named.conf.local BIND_DIR=/etc/bind #POSTFIX_MAIN=main.cf #POSTFIX_VIRTUAL=virtual #BIND_CONF=named.conf.local #BIND_DIR=$PWD my_read(){ local L_DATA echo -n "$1 " OISF="$IFS" IFS=S'\n' read L_DATA eval "$2=\"$L_DATA\"" IFS="$OIFS" }
Python kód teszt:
def fv(x,y): for i in range(len(x)): x[i] = x[i] * y return x
#include <stdio.h> int main(){ }
x2
Header col. A | Header col. B | Header col. D | |
---|---|---|---|
Header row 1 | cell R1-A | cell R1-B | cell R1-D |
Header row 2 | cell R2-A | cell R2-B | cell R2-D |
Header row 4 | cell R4-A | cell R4-B | cell R4-D |
Python tutor visualize example: