New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the block comment work in Python (and other languages without block comments) #16212
Comments
These lines would need to be modified for (b): jupyterlab/packages/codemirror-extension/src/commands.ts Lines 81 to 90 in 2dd8f4e
|
These lines would need to be modified for (a): jupyterlab/packages/codemirror/src/language.ts Lines 476 to 495 in 2dd8f4e
|
Some research is needed on (a) - what other other IDEs do? Do they use |
Hi I would like to work on this issue. |
Please do! |
Problem
"""
is de facto standard substitute as blessed by BDFLProposed Solution
Either or both:
pythonLanguage.data.of({commentTokens: ...})
to add"""
as block comment for Python - this only helps for PythontoggleBlockComment
with a composite command which tries to runtoggleBlockComment
first andtoggleComment
second if the former did not succeed (or check if language data havecommentTokens.block
defined)Additional context
See discussion in upstream issue codemirror/dev#1372 - upstream will not include that command nor the
"""
syntax for Python so it is up to JupyterLab to implement it.The text was updated successfully, but these errors were encountered: