highlight.js icon indicating copy to clipboard operation
highlight.js copied to clipboard

Phix

Open petelomax opened this issue 1 year ago • 7 comments

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

petelomax avatar Mar 03 '23 18:03 petelomax

Broken link? Do you have the repo elsewhere and were wanting to move it here?

joshgoebel avatar Mar 19 '23 13:03 joshgoebel

Yes, my copy is at https://github.com/petelomax/highlightjs-phix

petelomax avatar Mar 21 '23 07:03 petelomax

https://github.com/highlightjs/highlightjs-phix/

Repo created, sorry for losing track of this one.

joshgoebel avatar May 29 '23 06:05 joshgoebel

Could you please add a dist folder with the CDN build artifacts?

joshgoebel avatar Aug 04 '23 05:08 joshgoebel

I could probably add an empty dist folder, but I have absolutely no idea what "CDN build artifacts" are.

petelomax avatar Aug 05 '23 02:08 petelomax

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

joshgoebel avatar Nov 11 '23 02:11 joshgoebel

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.

robloxiandemo avatar Nov 13 '23 16:11 robloxiandemo

What's happening on this?

petelomax avatar Apr 02 '24 10:04 petelomax

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.

joshgoebel avatar Apr 02 '24 21:04 joshgoebel

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. (/home/pete/highlight.js/node_modules/rollup/dist/rollup.js:14:16) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) (node:5646) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --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.

petelomax avatar Apr 14 '24 17:04 petelomax

Are you perhaps using some very old version of Node.js?

joshgoebel avatar Apr 14 '24 19:04 joshgoebel

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!

petelomax avatar Apr 14 '24 20:04 petelomax

There is now a dist folder in https://github.com/petelomax/highlightjs-phix

petelomax avatar Apr 14 '24 21:04 petelomax

So does that mean that euphoria's config.json can be changed to

  "online_editor": {
    "indent_style": "space",
    "indent_size": 2,
    "highlightjs_language": "phix"
  },

?

axtens avatar Apr 15 '24 02:04 axtens

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

github-actions[bot] avatar Apr 15 '24 02:04 github-actions[bot]