- Notifications
You must be signed in to change notification settings - Fork24
Python language support for the CodeMirror code editor
License
codemirror/lang-python
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
[WEBSITE |ISSUES |FORUM |CHANGELOG ]
This package implements Python language support for theCodeMirror code editor.
Theproject page has more information, anumber ofexamples and thedocumentation.
This code is released under anMIT license.
We aim to be an inclusive, welcoming community. To make that explicit,we have acode ofconduct that appliesto communication around the project.
import{EditorView,basicSetup}from"codemirror"import{python}from"@codemirror/lang-python"constview=newEditorView({parent:document.body,doc:`print("Hello world")`,extensions:[basicSetup,python()]})
python() → LanguageSupportPython language support.
pythonLanguage:LRLanguageA language provider based on theLezer Pythonparser, extended withhighlighting and indentation information.
globalCompletion:CompletionSourceAutocompletion for built-in Python globals and keywords.
localCompletionSource(context: CompletionContext) → CompletionResult |nullCompletion source that looks up locally defined names inPython code.
About
Python language support for the CodeMirror code editor
Resources
License
Uh oh!
There was an error while loading.Please reload this page.