Quick Sign In:  

Forum: Wishes and new features

Topic: Add a [code] modifier to forum posts

This topic is old and might contain outdated or incorrect information.

For VDJScript and other types of programming languages or command line snippets it would be really helpful if we had a [code] BBcode tag. Right now i use the italics tag, but that still produces hard to read, non-monospace text.

Many other websites and forums have this feature, like Discord, Slack, Matrix, i think IRCs as well, and <code> is already a valid HTML element. It would be an easy and very productive addition in my opinion. =)
 

Posted Wed 24 Mar 21 @ 10:30 am
juse use the [ code] tag

 
/* here is some "code" */

var 'double' ? set 'double' 0 & repeat_stop 'myrep' & device_side 'left' ? deck left clone_deck right : deck right clone_deck left : set 'double' 1 & repeat_start 'myrep' 400ms 1 & load & set 'double' 0

<square border="2" border_color="yellow" radius="20" >
<pos x="400" y="5"/>
<size width="200" height="100"/>
<gradient type="vertical" color1="red" color2="blue"/> /* color values */
</square>



 

Posted Wed 24 Mar 21 @ 10:34 am
NicotuxHome userMember since 2014
Simply would be fine to make it readable as well in previous messages when writing an answer
for now it is dark background with dark gray text
 

Posted Wed 24 Mar 21 @ 11:00 am
Rune (dj-in-norway) wrote :
juse use the [ code] tag

 
/* here is some "code" */

var 'double' ? set 'double' 0 & repeat_stop 'myrep' & device_side 'left' ? deck left clone_deck right : deck right clone_deck left : set 'double' 1 & repeat_start 'myrep' 400ms 1 & load & set 'double' 0

<square border="2" border_color="yellow" radius="20" >
<pos x="400" y="5"/>
<size width="200" height="100"/>
<gradient type="vertical" color1="red" color2="blue"/> /* color values */
</square>





Wow either i haven't seen that before, or i forgot about it...
I wonder how it behaves with
inline code
, because that would be even more useful.

Edit: It's a block element, unfortunately. Being able to write code inline would be a big readability improvement i think.
 

Posted Wed 24 Mar 21 @ 1:56 pm


(Old topics and forums are automatically closed)