You are here: PSPad forum > English discussion forum > Golang syntax highlighting

Golang syntax highlighting

#1 Golang syntax highlighting

Posted by: PaulPic | Date: 2021-05-22 20:47 | IP: IP Logged

As far as I can see, there is no Golang syntax highlighting in PHPad. Is is hard to define one, and how to do it?

Options: Reply | Quote | Up ^


#2 Re: Golang syntax highlighting

Posted by: pspad | Date: 2021-05-23 04:09 | IP: IP Logged

It's not hard to define syntax if it isn't too exotic and different from everything else.
You need list of keywords
Then open menu settings / user highlighter and create new definition

As last step assign your new definition to free slot in the menu settings / high lighter settings

Options: Reply | Quote | Up ^


#3 Re: Golang syntax highlighting

Posted by: pspad | Date: 2021-05-23 07:22 | IP: IP Logged

As I looged in the PSPad user highlighter definitions, there is Google GO language definition
So what you need to do is assign this definition in the Highlighter settings into any free slot. It's all and from this momment PSPad will know GO language

Options: Reply | Quote | Up ^


#4 Re: Golang syntax highlighting

Posted by: PaulPic | Date: 2021-05-23 18:54 | IP: IP Logged

Thanks a lot! That's great and typical for PSPad - just great!smiling smiley

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2021 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR