Auto convert code tags

Propose new features and changes
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Auto convert code tags

25 Jan 2014, 14:45

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
timeFlies
Posts: 146
Joined: 22 Oct 2013, 20:54
Location: Somewhere in the northern hemisphere.

Re: Auto convert code tags

25 Jan 2014, 14:57

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.
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Re: Auto convert code tags

25 Jan 2014, 15:16

If you do that, you won't get the download link chaz
Image
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Auto convert code tags

25 Jan 2014, 18:28

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...
User avatar
tomoe_uehara
Posts: 213
Joined: 05 Oct 2013, 12:37
Contact:

Re: Auto convert code tags

25 Jan 2014, 23:06

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]

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 47 guests