Page 1 of 1

Auto convert code tags

Posted: 25 Jan 2014, 14:45
by tomoe_uehara
Since all of the users are presented the 'quick reply' page on the bottom of each thread, I tend to type the code tags manually, but then the syntax highlighting feature doesn't work because it's not treated as "AutoHotkey" language.
Since this is an AutoHotkey related forum, will it be a good idea to automatically convert those plain code tags to Autohotkey?

Image

Re: Auto convert code tags

Posted: 25 Jan 2014, 14:57
by timeFlies
I had the same problem, until I realised that it's as simple as typing [co de=autohotkey]code here[/co de]. Just add the "=autohotkey" part and it will highlight accordingly.

Re: Auto convert code tags

Posted: 25 Jan 2014, 15:16
by tomoe_uehara
If you do that, you won't get the download link chaz
Image

Re: Auto convert code tags

Posted: 25 Jan 2014, 18:28
by lexikos
I wasn't aware of the difference. I always type the tags manually (or via a hotkey), but haven't been posting much.

Code: Select all

Normal code tags.

Code: Select all

MsgBox, code=autohotkey

Code: Select all

MsgBox, code file=filename.ext

Code: Select all

MsgBox, code=autohotkey file=filename.ext
The highlighted code is also smaller...

Re: Auto convert code tags

Posted: 25 Jan 2014, 23:06
by tomoe_uehara
If you use the code=autohotkey on the code tag, you can click on the commands to view their documentation.
For now I have to use this to post

Code: Select all

!F8::
SendRaw [code=autohotkey file=Script.ahk]
Send {Left 7}
return[/code]