Posting code and errors is currently a messy proces. This forum software supports a special ‘code’ button. Could it be enabled?
-
Enable code posting button on the forum
-
Describe ‘messy’ to
post code
i just use threein a row, paste my code, and again use three
(I see now that only one ` is needed…) -
@quotschmacher I actually tried using the three back ticks when I first posted, but I didn’t see the corresponding effect in the live preview.
‘’‘
test
’’’aha!
Still, a button would be nice
-
@mr_smith Unfortunately, the code button plugin does not work with recent versions of node-BB as far as I can see.
https://forum.pimatic.org/topic/1179/how-to-post-code-snippets-and-alike-on-the-forum
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig maybe this one, idk…
https://github.com/sgaist/nodebb-plugin-codeinput/blob/master/README.md
-
@gleno0h Thanks. Unfortunately, this one is not discovered by the plugin manager. It can be installed from the command line though. I’ll give it a try in the coming days
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig did you have time to try this out?
-
@gleno0h Yes, I tried, but it didn’t work out. The plugin is outdated anyway.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig how about this one;
https://www.npmjs.com/package/nodebb-plugin-code-button-recn