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

WinHex templates and scripts are not yet supported. #714

Closed
lenny20 opened this issue Sep 5, 2023 · 7 comments
Closed

WinHex templates and scripts are not yet supported. #714

lenny20 opened this issue Sep 5, 2023 · 7 comments

Comments

@lenny20
Copy link

lenny20 commented Sep 5, 2023

Winhex templates (.tpl) and scripts (.whs) are quite commonly used and I would like to support syntax highlighting for them.
Thanks!

@zufuliu
Copy link
Owner

zufuliu commented Sep 5, 2023

http://www.winhex.com/winhex/scripting.html
by default, .tpl can't be assigned to WinHex as other template file also use this extension.

@zufuliu zufuliu added this to the v4.23.10 milestone Sep 7, 2023
@zufuliu
Copy link
Owner

zufuliu commented Sep 7, 2023

Added a simple lexer in 76579cb, please test latest builds from https://github.com/zufuliu/notepad2/actions.
.tpl is currently assigned to "Web Source Code" scheme, you will need to remove that and it to "WinHex Script" scheme.

@lenny20
Copy link
Author

lenny20 commented Sep 8, 2023

I've tried this, it's not aesthetically pleasing.
I would like to put .tpl and .whs to C or Pascal Source tag. No need for new winhex tags.

@zufuliu
Copy link
Owner

zufuliu commented Sep 8, 2023

No need for new winhex tags

WinHex is not C++.

@lenny20
Copy link
Author

lenny20 commented Sep 8, 2023

Both C and Pascal Source tags look good.

@zufuliu
Copy link
Owner

zufuliu commented Sep 8, 2023

It has to be a different scheme due to different syntax and keywords.

put following to Notepad2.ini will make everything work:

[File Extensions]
Web Source Code=html; htm; shtml; xhtml; asp; aspx; jsp; mht; htd; htt; hta; htc; cfm; jd
WinHex Script=whs; tpl

@lenny20
Copy link
Author

lenny20 commented Sep 8, 2023

OK. Thank you!

@zufuliu zufuliu closed this as completed Nov 18, 2023
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

2 participants