Sandbox: Difference between revisions

Content added Content deleted
m (#ask gets an intro.)
m (→‎Testing new language tags: Squeeze some tags.)
Line 61: Line 61:
==Testing new language tags==
==Testing new language tags==
===Z80===
===Z80===
<lang z80>
<lang z80>; some random instructions
; some random instructions
ld a, 80h
ld a, 80h
ld b, 9Ah
ld b, 9Ah
add a, b
add a, b
adc a, a
adc a, a
rst 0 ; reboot :-)
rst 0 ; reboot :-)</lang>
</lang>


===Whitespace===
===Whitespace===
<lang whitespace>
<lang whitespace>This may not be a meaningful whitespace
This may not be a meaningful whitespace
program,
program,
but it's
but it's
just a highlighting test
just a highlighting test
anyway.
anyway.</lang>
</lang>


===AviSynth===
===AviSynth===
<lang avisynth>
<lang avisynth>AviSource("D:\clip.avi")
AviSource("D:\clip.avi")
ConvertToYUY2()
ConvertToYUY2()
PixieDust(5)
PixieDust(5)</lang>
</lang>


===POV-Ray===
===POV-Ray===
<lang povray>#declare factorial = function(C) { prod(i, 1, C, i) }
<lang povray>
#declare factorial = function(C) { prod(i, 1, C, i) }
#declare A = factorial(5);
#declare A = factorial(5);
sphere{0,A} // a sphere
sphere{0,A} // a sphere</lang>
</lang>


===Text===
===Text===
<lang text>Is this actually a programming language, or really just plain text?</lang>
<lang text>
Is this actually a programming language, or really just plain text?
</lang>


===What happens if a language doesn't exist?===
===What happens if a language doesn't exist?===
<lang somelanguagethatdoesnotexist>
<lang somelanguagethatdoesnotexist>some code
some code
more code;
more code;
* a b -> c /// &a1 ->>> 778
* a b -> c /// &a1 ->>> 778
(Probably this is an obfuscated language :-))
(Probably this is an obfuscated language :-))</lang>
</lang>


==Whitespace test with unicode ZERO WIDTH NO-BREAK SPACE character (U+FEFF)==
==Whitespace test with unicode ZERO WIDTH NO-BREAK SPACE character (U+FEFF)==