快速登录:  

Forum: Wishes and new features

话题: Add a [code] modifier to forum posts

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

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. =)
 

发表时间 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>



 

发表时间 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
 

发表时间 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.
 

发表时间 Wed 24 Mar 21 @ 1:56 pm


(陈旧帖子或论坛版块会自动关闭)