Infocatcher / AkelPad_scripts

Scripts for AkelPad text editor with Scripts plugin
30 stars 4 forks source link

[toggleComments.js] supporting Lua and Powershell comments #13

Closed d0vgan closed 2 years ago

d0vgan commented 2 years ago

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: [ ["<#"], ["#>"], ["#"] ]
d0vgan commented 2 years ago

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, ["#"] ],
Infocatcher commented 2 years ago

Added, thanks!