Skip to content

Add additional languages alternatives to be consistent with desktop client - #47

Merged
advaith1 merged 6 commits into
discord:masterfrom
Tyviebrock:master
Aug 25, 2026
Merged

advaith1 merged 6 commits into
discord:masterfrom
Tyviebrock:master

Conversation

@Tyviebrock

@Tyviebrock Tyviebrock commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

This PR adds the following alternatives:

  • jsx, mjs, and cjs for JavaScript
  • gyp and ipython for Python
  • cts, mts, and tsx for TypeScript
  • patch for Diff
  • kts for kotlin

I didn't touch xml/http alternatives

@Tyviebrock Tyviebrock changed the title Add patch as an alternative to diff Add additional languages alternatives to be consistent with desktop client Jul 11, 2026
@Tyviebrock

Tyviebrock commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@advaith1 I'm not sure if you'd like me to add the arborium alternatives as well, as it's not on desktop (yet).

But just for future me, they're:
py3 and python3 - python
kts - kotlin

mysql, postgresql, postgres, and sqlite (I'm not sure about the difference about SQL and PostgreSQL, highlight.js has them seperated, while arborium combines them. Or what this prioritizes)

mjs and cjs - Javascript

(again, doesn't touch http/xml alts)

Additional Notes:

  • gyp isn't used in arborium, though is currently used as an alt for python in highlight.js
  • tsx is seperated from ts in arborium, although is used as an alt ts in highlight.js (basically same issue as the SQL stuff, but reversed)

@advaith1

Copy link
Copy Markdown
Contributor

@Tyviebrock thanks! any reason you didn't add mjs and cjs?

@Tyviebrock

Copy link
Copy Markdown
Contributor Author

@advaith1 I didn't even realize that desktop/highlight.js uses them. Must've either missed it or it's not listed on highlight.js

Will add it right now.

@Tyviebrock

Tyviebrock commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Looked into it, at the time it wasn't listed on highlight.js supported languages. It is now.

@Tyviebrock

Copy link
Copy Markdown
Contributor Author

Notes:

  • Added kts and ipython as alts, would've added ktm and ktx for kotlin but desktop doesn't appear to be updated for it

@advaith1

Copy link
Copy Markdown
Contributor

ty!

@advaith1
advaith1 merged commit 048671b into discord:master Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants