|
Post by questionbot on Jul 12, 2020 14:08:43 GMT
Hi there... ran into a problem trying to reply to a question today... basically I can not work out how the CODE bbcode works... Basically it make a new code box for every line... sudo add-apt-repository ppa:atareao/atareao
sudo apt update
sudo apt-get install -y touchpad-indicator
I ended up using a quote box?
|
|
|
Post by questionbot on Jul 12, 2020 14:09:28 GMT
sudo add-apt-repository ppa:atareao/atareao sudo apt update sudo apt-get install -y touchpad-indicator This time I manually wrote the bbcode around the text block after I finished writing it.
edit - this seemed to work but was still a pain.. in my other thread it was covered in [ div ] code blocks and stuff.. really strange and if you try and add to the code it makes a new line thing like in the post above.
Acts all strange man.
|
|
|
Post by Hippytaff on Jul 12, 2020 14:21:03 GMT
That is odd. I’m using a plugin to use numbering with the code tags. So maybe that is the issue 🤔
Test Test Test
Edit - Hmmm I’ll look into that. Thanks for the heads up 👍
|
|
|
Post by Hippytaff on Jul 15, 2020 12:04:05 GMT
I've checked the plugin and tested it. It looks ok now, but I would suggest using the code tags for code only rather than cli/terminal commands/output.
|
|
|
Post by questionbot on Jul 15, 2020 18:34:26 GMT
does it have a syntax highlighter ... like [ code=Python ] or something?
|
|
|
Post by Hippytaff on Jul 15, 2020 18:51:35 GMT
This plugin doesn’t yet, unfortunately. I’ll keep my eye out for one that does, or add modifying the code on this one to my todo list if not.
|
|
|
Post by Hippytaff on Jul 16, 2020 15:32:32 GMT
There is some highlighting now, but in all honesty this plugin I've found isn't the best. To use it put
in the first code tag.
Apparently other languages can be forced by replacing title="c" with title="python" to have python specific highlighting. This doesn't seem to work for me yet. Still playing with the plugin though, and looking out for a better one.
|
|
|
Post by Hippytaff on Jul 19, 2020 19:06:45 GMT
The code button now has the option for highlighting certain code. I have selected what I believe to be the most popular, but others such as rust etc are also available if required.
The above in square brackets should use python highlighting.
|
|