Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular expression for file name extension definition #1135

Closed
xixero opened this issue Apr 22, 2019 · 4 comments
Closed

Regular expression for file name extension definition #1135

xixero opened this issue Apr 22, 2019 · 4 comments

Comments

@xixero
Copy link

xixero commented Apr 22, 2019

Syntax highlighting rules are applied by file extension - .txt .html .cmd etc...
Is it possible to add regular expressions to define rules? Some Linux files have no extension, but are recognized by part of filename - "programrc" for example (rc at the end is the important part, so for example nano recognizes it by "\rc$").

@RaiKoHoff
Copy link
Collaborator

Please test development beta version _5.19.520.1715_RC (See beta channel access #1129)

Add FileName-RegEx to extensionlist. Must start with \ and end with ;
This means, \ and ; can not be part of the regex pattern.
Your example reads then: \rc$;.

@RaiKoHoff RaiKoHoff changed the title feature request: customizable syntax definition Regular expression for file name extension definition Jan 22, 2020
@RaiKoHoff
Copy link
Collaborator

Can be closed, if tests are OK.

@hpwamr
Copy link
Collaborator

hpwamr commented Feb 25, 2020

Hello @xixero ,

Feel free to test the RC2 version "Notepad3Portable_5.20.224.1_RC2.paf.exe.7z" or higher.
See "Notepad3 BETA-channel access issue #1129" or here Notepad3Portable_5.20.224.1_RC2.paf.exe.7z.

Note: "Notepad3Portable RC2" can be used in "2 flavors" (with or without the extension ".7z").

Your comments and suggestions are welcome... 😃

@hpwamr
Copy link
Collaborator

hpwamr commented Feb 25, 2020

Hello @xixero ,

As far as I'm concerned, I think you (requester) can close this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants