Skip to content

Examples

Standalone example apps demonstrating pyside6_scintilla. Each one lives under examples/ in the repository and can be run directly after uv sync:

uv run python examples/<example>/main.py

Basic

  • Simple ScintillaEditBase edit


    A minimal QMainWindow built around ScintillaEditBase, with a line-number margin toggle and block (rectangular) selection/editing.

    More

  • Simple ScintillaEdit edit


    A minimal QMainWindow built around ScintillaEdit's typed methods, with a line-number margin toggle, "Go to Line", and block (rectangular) selection/editing.

    More

  • BScintillaEdit drop-in replacement


    A small, portable, single-file BScintillaEdit(QScrollArea) widget that's a drop-in replacement for the old, now-archived bscintillaedit PyPI package's widget of the same name, meant to be copied into your own project.

    More

Highlighting/Folding

  • Pygments highlighting


    Python syntax highlighting in a ScintillaEdit, driven by a Pygments lexer and applied manually via raw SCI_STYLE* messages.

    More

  • tree-sitter highlighting and folding


    Python syntax highlighting and code folding in a ScintillaEdit, driven by a tree-sitter grammar — styling applied via raw SCI_STYLE* messages, folding via setFoldLevel().

    More