still a few issues.
the output.txt file is tab-delimited, but doesn't really work for programming languages.
how do I express multi-line code, Gabriel?
Also, my data.url is not a zip file, but a git uri, is that okay?
hello world for 174 languages
Check out the programming data format at the bottom of the Readme at https://github.com/duckduckgo/zeroclickinfo-fathead
That format will enable you to easily put the code in a code block like for https://duckduckgo.com/?q=perl%20split
For multiline you just need to escape \n as \n, i.e. add a backslash.
Just to clarify, I think he meant \\n.
parser outputs properly escaped output.txt file
Hey, yes I saw that readme. Thanks rpicard I understand now.
I updated the file. How's this plugin now?
That output doesn't quite look right. @yegg Shouldn't \n be in the output.txt where now it looks like this:
slash then a new line\
more slashes and new lines...
so that it would look like this:
some code\nno slash then a new line\nstill no slashes and new lines...
Sorry for the delay. @jperla I mean that there are backslashes at the end of all of your lines (as in the first block of code from my previous comment" when it should look like the second block of code.
properly escaped newlines and tabs
Hi Rob, thanks I fixed that. I also escaped and made visible the tabs.
@jperla Thanks! Looking better. What's up with line 112 though? Is that a PNG?
remove piet.png, add back whitespace
@jperla I've merged the pull request. Thanks for your submission!
@jperla We're thinking that it would be good if this triggered on perl hello world and hello world in perl as well as the current hello world perl. It would just require printing two more lines for each language with the alternate triggers. If you want to work on that it'd be appreciated!
perl hello world
hello world in perl
hello world perl
You can email me at robert at duckduckgo dot com if you have any questions.