by gregster » 21 Jul 2021, 04:17
I know that the "code" button is there, but most of the people use "Autohotkey code" because it looks better.
But is there really a visual advantage of the
codebox tag over the simple
code tag ?
Codebox tag (with 'autohotkey' format selected):
Code: Select all
F12::
if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10
}
else{
TrayTip, Timer , started, 2
}
Tickcount_old:= A_TickCount
return
"Normal"
Code tags (fifth button from the left; in the 'Digi' theme it is labeled
</>):
Code: Select all
F12::
if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10
}
else{
TrayTip, Timer , started, 2
}
Tickcount_old:= A_TickCount
return
The only difference seems to be the additional "Download" link, when
Codebox is used instead of
code.
That's why I usually just use the
code tags, and don't even bother with the codebox dropdown.
Or are you talking about
inline code tags (
c-tags) ? In my experience, there are not many people who use them for multi-line code:
if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10
[quote]I know that the "code" button is there, but most of the people use "Autohotkey code" because it looks better.[/quote]
But is there really a visual advantage of the [c]codebox[/c] tag over the simple [c]code[/c] tag ?
[c]Codebox[/c] tag (with 'autohotkey' format selected):
[Codebox=autohotkey file=Untitled.ahk]F12::
if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10
}
else{
TrayTip, Timer , started, 2
}
Tickcount_old:= A_TickCount
return[/Codebox]
"Normal" [c]Code[/c] tags (fifth button from the left; in the 'Digi' theme it is labeled [c]</>[/c]):
[code]F12::
if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10
}
else{
TrayTip, Timer , started, 2
}
Tickcount_old:= A_TickCount
return[/code]
The only difference seems to be the additional "Download" link, when [c]Codebox[/c] is used instead of [c]code[/c].
That's why I usually just use the [c]code[/c] tags, and don't even bother with the codebox dropdown.
Or are you talking about [i]inline code[/i] tags ([c]c[/c]-tags) ? In my experience, there are not many people who use them for multi-line code:
[c]if (Tickcount_old>0){
TrayTip, Timer , % A_TickCount- Tickcount_old " miliseconds", 10[/c]