パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.0.5

rich_code_editor

Flutterで構文強調機能を備えた独自のリッチコードエディタを作成します。

30日間ダウンロード
47
いいね数
34
Pub ポイント
30

パッケージをインストール

flutter pub add rich_code_editor

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

rich_code_editor パッケージは、Flutter アプリケーション内でカスタムで機能豊富なコードエディタを構築できるようにし、組み込みの構文ハイライト機能を備えています。複数のプログラミング言語をサポートするインタラクティブなコーディング環境を構築するための柔軟な基盤を提供します。教育ツール、IDE、または開発者ダッシュボードへの統合を目的としており、リアルタイムでのコード入力と視覚的なフィードバックを可能にします。軽量かつ拡張可能であるため、完全なIDEの複雑さなしにコード編集機能が必要なプロジェクトに最適です。

用途

  • インタラクティブなコーディングチュートリアル
  • 軽量なIDE
  • コードスニペットビューアー
  • リアルタイム共同作業ツール
  • 開発者ダッシュボード

主な機能

  • 構文ハイライト
  • カスタマイズ可能なテーマ
  • 拡張可能なアーキテクチャ
  • リアルタイム入力処理
  • 複数言語のサポート

適している対象

  • 教育アプリ
  • 開発者ツール
  • コード共有プラットフォーム
  • 内部管理者インターフェース
  • プロトタイプコードエディタ

注意事項

  • 基本的なエディタ機能に限定
  • 組み込みの自動補完なし
  • 高度な機能を活用するには手動での設定が必要です
  • 大容量ファイル向けに最適化されていません
  • ネイティブなモバイルキーボード統合なし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

rich_code_editor

A simple package that supports creating code editors in Flutter.

Flutter version supported: Flutter 1.22.5

Getting Started

There are two main components of the rich code editor:

  1. Editor
  2. Syntax Highlighter

The editor is a text area which is identical to Flutter's TextField widget. However, unlike a regular TextField the editor uses an instance of syntax highlighter object to parse and highlight code syntax.

Since the editor itself is independent of the syntax highlighting rules, the same editor can be used for any other programming langugages. Only the syntax highlighter implementation needs to be created separately for each new programming language.

The example demo uses a dummy syntax highlighter implementation DummySyntaxHighlighter.

Get Started by creating your own implementation for SyntaxHighlighterBase class.

The syntax highlight logic part is not much implemented in this package as that will change as per the choice of programming language.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト