Merge pull request #1445 from ajaxorg/highlighting/bugfix
Add more modes
This commit is contained in:
commit
e97d7609b9
26 changed files with 1972 additions and 45 deletions
18
demo/kitchen-sink/docs/assembly_x86.asm
Normal file
18
demo/kitchen-sink/docs/assembly_x86.asm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
section .text
|
||||
global main ;must be declared for using gcc
|
||||
|
||||
main: ;tell linker entry point
|
||||
|
||||
mov edx, len ;message length
|
||||
mov ecx, msg ;message to write
|
||||
mov ebx, 1 ;file descriptor (stdout)
|
||||
mov eax, 4 ;system call number (sys_write)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
mov eax, 1 ;system call number (sys_exit)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
section .data
|
||||
|
||||
msg db 'Hello, world!',0xa ;our dear string
|
||||
len equ $ - msg ;length of our dear string
|
||||
9
demo/kitchen-sink/docs/twig.twig
Normal file
9
demo/kitchen-sink/docs/twig.twig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% autoescape true %}
|
||||
{{ var }}
|
||||
{{ var|raw }} {# var won't be escaped #}
|
||||
{{ var|escape }} {# var won't be doubled-escaped #}
|
||||
{% endautoescape %}
|
||||
|
||||
{{ include('twig.html', sandboxed = true) }}
|
||||
|
||||
{{"string #{with} \" escapes" 'another#one' }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue