diff options
author | 2011-03-07 09:04:49 +0100 | |
---|---|---|
committer | 2011-03-07 09:04:49 +0100 | |
commit | 94d2fc1815a919734353c942f224db1de4b4fcb8 (patch) | |
tree | 4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/noweb1.now | |
parent | d0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff) | |
download | dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip |
Django, org
* Added nxhtml, mostly for django support.
* Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/noweb1.now')
-rw-r--r-- | emacs.d/nxhtml/tests/in/noweb1.now | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/noweb1.now b/emacs.d/nxhtml/tests/in/noweb1.now new file mode 100644 index 0000000..1df9074 --- /dev/null +++ b/emacs.d/nxhtml/tests/in/noweb1.now @@ -0,0 +1,38 @@ +@
+\section{Hello world}
+
+Today I awakened and decided to write
+some code, so I started to write a Hello World in \textsf C.
+
+<<hello.c>>=
+/*
+ <<license>>
+*/
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ printf("Hello World!\n");
+ return 0;
+}
+@
+\noindent \ldots then I did the same in PHP.
+
+<<hello.sql>>=
+SELECT * FROM Persons
+WHERE FirstName LIKE '%a'
+@
+<<hello.php>>=
+<?php
+ /*
+ <<license>>
+ */
+ echo "Hello world!\n";
+?>
+@
+\section{License}
+Later, same day some lawyer reminded me about licenses.
+So, here it is:
+
+<<license>>=
+This work is placed in the public domain.
+@
|