Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

URLs in Code Blocks are Mishandled

A topic by simulatoralive created Jun 19, 2020 Views: 377 Replies: 1
Viewing posts 1 to 2

I recently made a new post to the dev log for my game.

Here's the post in question: https://simulatoralive.itch.io/bigblockengine/devlog/155808/the-shell-script-launcher-in-detail

If you'll look at the code block with my shell script in it, you'll notice that the editor automatically turned some URLs in the code into links.  I didn't want that and it actually badly interfered with me editing that log entry as each time I saved it, it went through and turned each URL in the code block into another link.  I found the bug after the third or fourth such edit of the draft of that log, so I had several concentric links messily shoved into that code block.

If a URL is found in a code block, it shouldn't automatically be turned into a link when it's saved.  If we're using code blocks, the editor should respect the fact that we don't want any automatic stuff happening to it.

This was particularly frustrating, because each time I've edited to fix a typo or add material, I had to go in and fix that line, copying the original version over all the unwanted HTML.

Just figured you should know about the bug.  Would love to see it fixed.

Thank you.

I recently found out that this forum also mishandles  XML when it's in code blocks, as well.  I posted a code block with XML in it to another thread yesterday.  In that case, it took XML tags that were NOT composed of starting and ending tags and pointlessly expanded it into start and end tags.

Again, I say, things inside code blocks shouldn't be modified.  That's the entire point of code blocks.