highlight.js
highlight.js copied to clipboard
Phix
CHANGES and SUPPORTED_LANGUAGES for Phix
https://github.com/highlightjs/highlight.js/issues/3727
Changes
Minimal
Checklist
- [X] Added markup tests, or they don't apply here because...
- [X] Updated the changelog at
CHANGES.md
Broken link? Do you have the repo elsewhere and were wanting to move it here?
Yes, my copy is at https://github.com/petelomax/highlightjs-phix
https://github.com/highlightjs/highlightjs-phix/
Repo created, sorry for losing track of this one.
Could you please add a dist
folder with the CDN build artifacts?
I could probably add an empty dist folder, but I have absolutely no idea what "CDN build artifacts" are.
but I have absolutely no idea what "CDN build artifacts" are.
The files that build cdn
drops into your repo if you're using the blessed development structure. The 3rd party developer document should explain how all that works.
https://github.com/highlightjs/highlight.js/blob/main/extra/3RD_PARTY_QUICK_START.md
I could probably add an empty dist folder, but I have absolutely no idea what "CDN build artifacts" are.
I already created a PR for you found here, which has already sorted this for you, so feel free to merge it anytime.
What's happening on this?
The issue is still:
https://github.com/highlightjs/highlight.js/pull/3728#issuecomment-1806644823
You need to use our build process to create the distributables (as well as scan for security issues)... it's all documented in the docs I link to. The build system creates the dist
folder, then you add it to your github repo.
node ./tools/build.js -t node Starting build. Finished build. (node:5646) UnhandledPromiseRejectionWarning: /home/pete/highlight.js/node_modules/rollup/dist/shared/rollup.js:58 textEncoder ??= new TextEncoder(); ^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Module.--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:5646) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Are you perhaps using some very old version of Node.js?
node -v said v12.22.9 (despite being ionstalled today) so after quite some struggle I've updated that to 20.12.2, and yay, it works!
There is now a dist folder in https://github.com/petelomax/highlightjs-phix
So does that mean that euphoria's config.json can be changed to
"online_editor": {
"indent_style": "space",
"indent_size": 2,
"highlightjs_language": "phix"
},
?
Build Size Report
Changes to minified artifacts in /build
, after gzip compression.
3 files changed
Total change +4 B
View Changes
file | base | pr | diff |
---|---|---|---|
es/core.min.js | 8.2 KB | 8.2 KB | +1 B |
es/highlight.min.js | 8.2 KB | 8.2 KB | +1 B |
highlight.min.js | 8.23 KB | 8.23 KB | +2 B |