You are here: PSPad forum > English discussion forum > Re: Default syntax highlighter for files without extension

Re: Default syntax highlighter for files without extension

#1 Default syntax highlighter for files without extension

Posted by: zelenej | Date: 2016-04-04 15:06 | IP: IP Logged

I would like to set default syntax highlighter (UNIX Shell Script) for files without extension.

What should I add to file format in the highlighter settings? I have tried adding asterisk there (*), but it didn't work.

------------------------

Chtěl bych si nastavit zvýraznění syntaxe pro soubory bez přípony (Linux/Unixové shell soubory).

Jak mám nastavit masky souborů ve zvýrazňovači? Zkoušel jsem přidávat hvězdičku (*), ale to nefungovalo.

Options: Reply | Quote | Up ^


#2 Re: Default syntax highlighter for files without extension

Posted by: pspad | Date: 2016-04-04 16:25 | IP: IP Logged

Set mask to: *.
Dot is important

Options: Reply | Quote | Up ^


#3 Re: Default syntax highlighter for files without extension

Posted by: zelenej | Date: 2016-04-04 17:33 | IP: IP Logged

OK, *. works, but not for files starting with dot (.htaccess). Is it possible to do it even for these (Windows 10, 64-bit)?

Edited 1 time(s). Last edit at 2016-04-04 17:34 by zelenej.

Options: Reply | Quote | Up ^


#4 Re: Default syntax highlighter for files without extension

Posted by: pspad | Date: 2016-04-04 17:48 | IP: IP Logged

.htaccess isn't file without extension. It's file without name with extension only.
Add it to your highlighter as *.htaccess

Options: Reply | Quote | Up ^


#5 Re: Default syntax highlighter for files without extension

Posted by: zelenej | Date: 2016-04-05 08:32 | IP: IP Logged

Thank you, it works! It never occurred to me that "htaccess" is treated as extension..

Options: Reply | Quote | Up ^


#6 Re: Default syntax highlighter for files without extension

Posted by: pspad | Date: 2016-04-05 09:11 | IP: IP Logged

in windows world the part behind the last dot mens extension

Options: Reply | Quote | Up ^






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