Skip to content

Latest commit

 

History

History
128 lines (90 loc) · 6.44 KB

README.jp.md

File metadata and controls

128 lines (90 loc) · 6.44 KB

Banner

CI GitHub license Maven Central
Telegram QQ

sora-editor は効率的な Android コードエディターです

他の言語のドキュメントを読む: English, 简体中文, Español, 日本語.

このプロジェクトはまだ開発中ですから、IssueやPRは歓迎です

このプロジェクトを直接クーロンするではなく、Releases からダウンロードしてください。

特徴

  • 構文の強調表示
  • オートコンプリート (コード スニペットのサポートを含む)
  • 自動インデント
  • コード ブロック ヘルパー行
  • ジェスチャーズーム
  • 元に戻す/やり直す
  • テキストの検索と置換
  • ワードラップ
  • 印刷できない文字が表示可能
  • エラー/警告/タイプミス/非推奨インジケーター
  • テキスト拡大鏡
  • テキスト増分分析
  • 括弧のペアを強調表示可能
  • イベントシステム

ショートカットキーの割り当て

物理キーボードを使用する場合、ショートカット キーを使用してさまざまなテキスト操作を実行できます。

エディターはデフォルトでいくつかのショートカット キーをサポートしていますが、KeyBindingEvent をサブスクライブすることができます。それを処理して独自のショートカット キーを実装します。もちろん、デフォルトのショートカット キーのアクションをオーバーライドしてカスタム アクションを実行することもできます。

現在のエディターでサポートされているショートカット キーのほとんどは、Android Studio/Intellij IDEA のショートカット キーと似ています。サポートされているショートカット キー を参照してください。

エディターのプレビュー画像

GeneralAppearance ProblemIndicator

始めに

依存関係をプロジェクトに追加してください:

dependencies {
    implementation(platform("io.github.Rosemoe.sora-editor:bom:<versionName>"))
    implementation("io.github.Rosemoe.sora-editor:<moduleName>")
}

以下は利用可能なモジュールです:

  • editor
    エディターのコア フレームワークが含まれています。
  • editor-lsp
    Language Server Protocol (略して LSP) を使用して言語を作成するための便利なツールのライブラリです。
  • language-java
    Java の強調表示とオートコンプリートを含む言語ライブラリ。
  • language-textmate
     高度なハイライト分析ライブラリ。これを使用して、textmate 言語構成ファイルをロードし、このエディターに適用できます。
    内部実装は tm4e から取得されます。
  • language-treesitter
     エディターに tree-sitter サポートを提供します。これを使用すると、コードを抽象構文ツリーに迅速かつ段階的に解析することができ、正確な強調表示と補完の提供に役立ちます。このモジュールはトランジションとハイライトのサポートのみを提供することに注意してください。
    android-tree-sitter プロジェクトによって提供される Java バインディング ライブラリを感謝します。

最新のエディターのバージョンは、上部のバッジまたは Releases から見つけることができます。

ディスカッション

貢献者

ライセンス

sora-editor - the awesome code editor for Android
https://github.com/Rosemoe/sora-editor
Copyright (C) 2020-2024  Rosemoe

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
USA

Please contact Rosemoe by email 2073412493@qq.com if you need
additional information or have any questions

謝辞

このプロジェクトに IntelliJ IDEA などの IDE の無料ライセンス を提供してくださった JetBrains に感謝します。