Jan, the question was how to change the shortcut behaviour
to insert ':: ' instead of 'REM ' by pressing Ctrl+Shift+A
Since this highlighter is build-in and there is no syntax file
existent, we can't change this setting.
But that is not really an issue, as ':: ' is a kind of pseudo comment only
by abuse jumps marks and not the official comment sign.
However, one can change this by creating an own user highlighter
and use there that as comment sign what one want.
Another way is to use an script to modify line comments
and execute that by an shortcut similar to Ctrl+Shift+A.
As here this JavaScript which can be executed by Ctrl+Alt+A:
// Add or remove leading MS-Dos pseudo comment signs ::
var module_name = "InsertMSDosComments";
var module_ver = "1.0";
function Init(){
addMenuItem("Add/Remove MS-Dos Comment ::","", "MSDosLineComments",
"Ctrl+Alt+A");
}
function MSDosLineComments(){
var doc, sel, LArr, i, line;
doc = newEditor();
doc.assignActiveEditor();
sel = doc.selText();
LArr = sel.split("\n");
for (i in LArr) {
line = LArr[i];
if (line.substr(0,3) == ":: ") {
line = line.substr(3);
}else{
line = ":: "+line;
}
doc.selText(line);
}
}
Note: this version works only with fully selected lines.
--
greets, Stefan
[img]http://pspad.milten.lima-city.de/Fan.gif[/img] (pleased user since 1722)
[url=http://tinyurl.com/52xrj]inofficial FAQs[/url] +
[url=http://forum.pspad.com/read.php?2,16286,page=2]Infos[/url] +
[url=http://forum.pspad.com/read.php?6,24628]Special Settings[/url]
<http://forum.pspad.com/read.php?2,62984,62993>
PSPad freeware editor http://www.pspad.com