Print "Select me"
I will look into this before the weekend. If no new emoji's have popped up before the new year then please remind me
I thought Gesih and highlightjs auto-detect languages if none is provided
The main culprit is that {code=BlitzMax}...{/code} has to be known to users.
@ Colorshttps://highlightjs.org/static/demo/They offer 80+ styles which seem pretty consistent in itself.
not sure if this is something that can be revised, but it might be good to have a select-link on marked code block:
No biggy, just adds to the, well overall atmosphere? But if tricky to do then no prio.
Thanks for your kind help. I notice that the name of the Blitz2D/3D sub-forum was changed to the new name.
so invite others!
Geshi transforms the "<pre>" (or "<code>") boxes to not contain preformatted text but"<span class='keyword'>function</span> DrawMe()" and so on. So each "to color" part gets wrapped into its own tag+class for proper styling. We need tointercept here - so it does keep the pure "text". But this way we would use the geshi-plugin to allow "{code=language}my code{/code}".
@qube: That is what i am doing atm for our move of CX. Writing my own forum/portal piece. I was fed up with how bloated and over complicated every other solution is. You only reach 80-90% and then hit a road block.
I would not write my own forum software as you _will_ create security flaws for sure.
Better use a forum offering "hooks" (or a similar system) for all this stuff. Learn the inners of the forum "hook system" on a weekend and extend from there.
Imagine you coded a big piece of the forum. It works and you migrated data (which needs to be done - see above) but suddenly you loose a bit interest in developing in further. A change here another change later in a month ... Meanwhile someone breaks into your forum (unrecognized), data gets phished...
or want to use some java backend for in-RAM-hosting of forum software for decent speed)
for highlightjs you do not need to alter the SMF source code - but the "theme templates".
Just wrote a bit too much about this subject so again in only some words: do not write your own forum software, 1-man-shows just loose way more life-time than required. Forum software is way bigger than BulletinBoard-software 20 years ago.
QuoteI would not write my own forum software as you _will_ create security flaws for sure.So the same as every other forum software ever developed?. I can't think of one that hasn't had numerous security flaws over the years.
A plus point of rolling your own is that a hacker would have to dedicate time to finding the flaws as apposed to 0day exploits used by script kiddies.
Also, I have over 15 years of PHP / MySQL and JavaScript knowledge.
QuoteBetter use a forum offering "hooks" (or a similar system) for all this stuff. Learn the inners of the forum "hook system" on a weekend and extend from there.But then you're still bound by *that* forum software and learning all bout *that* forum software. Then when updates are done they sometimes break the API and you have to redo things again.
As a side note I've written many web / DB apps for companies and none have been hacked or compromised so I think I can code forum software that's pretty secure.
Have you tried SMF with the Geshi plugin?. Even having different backgrounds per language is a pain in the butt and I'm pretty fed up with learning / fighting with each plugin.
Again: do what you want but _if_ you encounter issues (as described above) then do not yell that nobody warned before.
QuoteAgain: do what you want but _if_ you encounter issues (as described above) then do not yell that nobody warned before.If we get hacked then there won't be a forum to post "I told you so!"