Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

sexpcode

Name: Anonymous 2018-10-07 12:14

How did you implement sexpcode? Did you really bother with function composition and define or do you just use a FFI to call Xarn's code?

Name: Admin ★ 2018-10-07 14:10

Well this site is written in PHP (yes), and Xarn already had written a sexpcode plugin for wordpress. So I just ported that as a class and used it here.

I don't actually program or even use PHP, but when I added his plugin, it constantly outputted warnings. I don't know if it's my fault or not, but I had to change a good amount of it. I also removed some of its features because I either didn't care about them, or because they got broken in the process.

Mainly these were changed:
  • Higher-Arity functions: Basically functions that take arguments like url, or code. The url one isn't supported as a bbcode due to abuse anyway, so this feature is completely gone.
  • img function: completely gone.
  • Alternative Verbatim syntax: I forgot what the exact problem with this one was, but it kept breaking valid sexpcode because somewhere this syntax made everything become verbatim.

Here's his code: https://github.com/Cairnarvon/SexpCode-for-WordPress/blob/master/sexpcode.php

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List