You are here: PSPad forum > English discussion forum > Re: Making own syntax ini-file with reserved words prefixed by “#” character
Posted by: Freeman | Date: 2014-01-06 00:38 | IP: IP Logged
I'm developing new programming language named Cantor and using PSPad for it. I made syntax highlighter for Cantor, but can't highlight reserved words prefixed by hash character.
In Cantor, I'm using reserved words for entities, like in HTML. Because my reserved words are entiries, they're started with “#”.
What am I doing wrong? Is it PSPad bug?
For example, this code should be highlighted:
public class Something of
public TabCharacter = #TAB; // = #9
end;
You can download latest version of ini-file from my Google Code mirror.
Edited 4 time(s). Last edit at 2014-01-06 00:42 by Freeman.
Posted by: pspad | Date: 2014-01-06 09:00 | IP: IP Logged
In menu Settings / User highlighter add # char into Allowed chars in keywords field
Posted by: pspad | Date: 2014-01-06 09:04 | IP: IP Logged
If you are editing the file manually (better is used PSPad form) in section [SETTINGS] change:
KeyWordChars=_#
Posted by: Freeman | Date: 2014-01-06 17:33 | IP: IP Logged
Thanks, works great!
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR