Skip to content

Adding support for a new language #12166

@benlubas

Description

@benlubas

I'd like to add language support for q. Specifically, I'd to make quarto aware of the q comment string, which is /.

Searching around I found this list of files that all contain maps from language name to comment char.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json
src/resources/editor/tools/vs-code.mjs (in two places)
src/resources/editor/tools/yaml/web-worker.js (in two places)
src/resources/jupyter/notebook.py
src/resources/filters/modules/constants.lua
src/resources/rmd/hooks.R
src/core/jupyter/jupyter.ts
src/core/lib/partition-cell-options.ts

Cross checking with d256be7, I have all the same + one more.

I just grepped for julia.?[:=].*# and changed the lang/comment a few times. If someone has a better method or if this is documented anywhere, lmk.


I'm also curious about what it would take to get q syntax highlights in generated HTML out of the box. Currently I'm able to use Kate's k and q syntax definitions (from here) with some small changes, and use the syntax-definitions metadata. Is this something that I'd need to add to quarto? or some tool that quarto uses like pandoc?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    supporta request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions