Metadata-Version: 2.4
Name: flet-code-editor
Version: 0.85.0.dev2
Summary: Edit and highlight source code inside Flet apps.
Author-email: Flet contributors <hello@flet.dev>
License-Expression: Apache-2.0
Project-URL: Homepage, https://flet.dev
Project-URL: Documentation, https://flet.dev/docs/controls/codeeditor
Project-URL: Repository, https://github.com/flet-dev/flet/tree/main/sdk/python/packages/flet-code-editor
Project-URL: Issues, https://github.com/flet-dev/flet/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: flet==0.85.0.dev2
Dynamic: license-file

# flet-code-editor

[![pypi](https://img.shields.io/pypi/v/flet-code-editor.svg)](https://pypi.python.org/pypi/flet-code-editor)
[![downloads](https://static.pepy.tech/badge/flet-code-editor/month)](https://pepy.tech/project/flet-code-editor)
[![license](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://github.com/flet-dev/flet/blob/main/sdk/python/packages/flet-code-editor/LICENSE)

A [Flet](https://flet.dev) extension for editing and highlighting source code.

It is based on the [flutter_code_editor](https://pub.dev/packages/flutter_code_editor) Flutter package.

## Documentation

Detailed documentation to this package can be found [here](https://flet.dev/docs/controls/codeeditor/).

## Usage

### Installation

To install the `flet-code-editor` package and add it to your project dependencies:

- Using `uv`:
    ```bash
    uv add flet-code-editor
    ```

- Using `pip`:
    ```bash
    pip install flet-code-editor
    ```
    After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.

### Examples

For examples, see [these](https://github.com/flet-dev/flet/tree/main/sdk/python/examples/extensions/code_editor).
