4 ms·
Hey - Thanks for the comment. You can set the language by just changing the extension in the URL, if it guesses wrong. the open source project also has an opt
by seejohnrun 15y ago
Hey - Thanks for the comment.
You can set the language by just changing the extension in the URL, if it guesses wrong.
the open source project also has an optional disk store you can use in place of redis (http://github.com/seejohnrun/haste-server http://github.com/seejohnrun/haste-server), but my hosted version uses the redis store.
Thanks again!
- cabacon 15y agoFor what it's worth, changing the extension doesn't seem to work for me. A simple C program (http://hastebin.com/36QWBlYlML http://hastebin.com/36QWBlYlML) gets detected as TeX. Trying to change the http://hastebin.com/36QWBlYlML.tex http://hastebin.com/36QWBlYlML.tex to http://hastebin.com/36QWBlYlML.c http://hastebin.com/36QWBlYlML.c just redirects me back to the .tex URL. Also, while I am entering a file, the edit box is only two lines long, and I can't see the handle to resize it. This is Safari 5.1.1 on Snow Leopard. Looks nice!
- seejohnrun 15y agoHeya - just didn't have the .c extension in the mapping. Will add it in tonight and get it out. Thanks!
- jurre 15y agoWhile you're at it, changing the extension seems to break the back button in Chrome and Safari on OSX.
- wahnfrieden 15y agoI haven't tried reproducing this, but it sounds like he's setting redirects based on GETs. A bad idea all-around, and not only for breaking the back button in this case.
- seejohnrun 15y agovvv wahnfrieden will be fixed tonight
- mcpherrinm 15y agoAlso, clicking on the .c link breaks the back button, because it redirects to the .tex link before I can click back again.
- deleted 15y ago[deleted]
- cavilling_elite 15y agothis syntax changing by changing the extension is really clever, is it in the haste-server codebase?
- seejohnrun 15y agoyep: http://github.com/seejohnrun/haste-server http://github.com/seejohnrun/haste-server