Post new topic    
Page «  1, 2, 3
Metal King Slime
Send private message
 
 PostSun May 19, 2013 1:51 pm
Send private message Reply with quote
Do we have that plugin in the wiki?


EDIT: And yes, that html is impossibly terrible to look at, read, or even edit. I'd have to be the poor sod who has to maintain it.

Oh, wait, crap.... I am the poor sod maintaining it... blast....
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Slime Knight
Send private message
 
 PostSun May 19, 2013 2:47 pm
Send private message Reply with quote
BMR wrote:
Do we have that plugin in the wiki?


EDIT: And yes, that html is impossibly terrible to look at, read, or even edit. I'd have to be the poor sod who has to maintain it.

Oh, wait, crap.... I am the poor sod maintaining it... blast....

Write a quick local script which can convert a Plotscript into HTML formatting, then paste the output of the script into the Wiki. Then when you need to update any of the scripts, just do it locally and re-run the script to convert it into Wiki format.

Pygments is a great parsing library and is easily extendable to other languages. If your are not familiar with Python, this might be a great way to learn how to use it, and if you made a Plotscript Lexer, I'd love a copy too. Smile
Metal King Slime
Send private message
 
 PostSun May 19, 2013 3:23 pm
Send private message Reply with quote
Actually, I've already done that, but using FreeBasic, not Python. That's how I formatted the one on that page, just fed a text file to the program and it outputted the html. Only thing is, going from html back to plain text can be a bit of a chore. Sure, I can prolly rework the program, but I think I'll see if the plugin might be a better idea.
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Display posts from previous:
Page «  1, 2, 3