diff options
Diffstat (limited to 'examples/plain_to_html.cpp')
-rw-r--r-- | examples/plain_to_html.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/plain_to_html.cpp b/examples/plain_to_html.cpp new file mode 100644 index 0000000..9a81652 --- /dev/null +++ b/examples/plain_to_html.cpp @@ -0,0 +1,21 @@ +#include <stdio.h> +#include <html.hpp> +#include <plain.hpp> +#include <file.hpp> + + +int main() +{ + TexoFileExporter exporter(stdout); + TexoHTMLProducer producer(exporter); + TexoPlainImporter importer(producer); + importer.PutStr( + "I am a little cute line. \n" + "I am another and that's fine. \n" + "But I am as long as a pine,\n" + "so lets drink a glass of wine.\n\n" + "Second paragraph was started here. \n" + "Take your bananas and go home, seer.\n" + ); + return 0; +} |