Infocatcher/AkelPad_scripts

[toggleComments.js] supporting Lua and Powershell comments

Closed this issue · 2 comments

To add Lua and Powershell support, the following modification is suggested:

Before (original code, line 108):

au3: [ ["#comments-start", "#cs"], ["#comments-end", "#ce"], [";"] ]

After (updated code):

au3: [ ["#comments-start", "#cs"], ["#comments-end", "#ce"], [";"] ],
lua: [ ["--[["], ["]]"], ["--"] ],
ps1: [ ["<#"], ["#>"], ["#"] ]

As a bonus, we may also add awk support:

Before:

ahk: [ null, null, [";"] ],
py: [ null, null, ["#"] ],

After:

ahk: [ null, null, [";"] ],
awk: [ null, null, ["#"] ],
py: [ null, null, ["#"] ],

Added, thanks!