On Monday, August 10, 2015 at 2:10:03 PM UTC+2, Alex H wrote: > > > Yeah, I wanted to use the nice syntax highlight plugin for the code blocks > ( http://tiddlywiki.com/plugins/tiddlywiki/highlight/index.html ) - but I > think it shouldn't be a huge problem to use highlight.js directly ( > https://github.com/isagalaev/highlight.js ). >
You should have mentioned this in your first post, because this changes the whole problem. I have no experience with the highlight plugin, so someone else may jump in here. > Thanks a lot for your examples - very useful! > glad I could help. > > Sidenote: at first I didn't get them to work - then I figured out that you > can't just enter a path if you are on the node.js version of tiddlywiki, > which makes sense... > I have now http-server running ( https://github.com/indexzero/http-server > ), so I can access the files via > http://localhost:8080/home/alex/somefolder/somefile.txt. I'm usually a > bit allergic against making things more complicated, but I think there is > no other way to do this if you are using the node.js version and I really > enjoy some of the advantages of node.js version - so I guess that's the way > to go for me... > It's no big deal, I have a startupscript for my wikis anyway, so that's a > good place to fire up http-server as well... > Yes. That's the way, the web works. TW server isn't intended to be a general purpose file server, like eg: nginx and imo it shouldn't. There is absolutely no need to reinvent the wheel again. So using battle tested proxies is the way to go, if you need to serve / access files. ... -mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b358e734-1091-4aa1-a8ec-02680241f62b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

