Skip to content
New issue

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

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

Already on GitHub? # to your account

WinHex templates and scripts are not yet supported. #714

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

WinHex templates and scripts are not yet supported. #714

ghost opened this issue Sep 5, 2023 · 7 comments

Comments

@ghost
Copy link

ghost 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.

@ghost
Copy link
Author

ghost 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++.

@ghost
Copy link
Author

ghost 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

@ghost
Copy link
Author

ghost commented Sep 8, 2023

OK. Thank you!

@zufuliu zufuliu closed this as completed Nov 18, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant