*[[gedit:https://gedit-text-editor.org/]] [#c704b7fa]
//#ref(https://gedit-text-editor.org/images/gedit-icon.png,right,around,nolink,gedit)
----
#contents
----
*gedit とは [#s7f61b9d]
gedit は使いやすい一般的なテキストエディターです.
-[[gedit, an easy-to-learn text editor:https://gedit-text-editor.org/]]
----
&color(#DAF0FE,#DAE0FE){%%% &color(Black){[開く(O)]}; &color(Black){[ᐯ]}; &color(Black){[+]}; &color(Black){無題のドキュメント1}; &color(Black){[保存(S)]}; &color(Black){[☰]}; &color(Black){×}; %%%};&br;
\documentclass[12pt]{scrartcl}
\usepackage{indentfirst}
\begin{document}
\section{What is gedit?}
gedit is an easy-to-use and general-purpose text editor.\par
Notable Features
\begin{itemize}
\item Files are opened in tabs
\item Full support for internationalized text (UTF-8)
\item Syntax highlighting for lots of languages (Python, Shell, C, C++, HTML, CSS, JavaScript, XML, Markdown and many others)
\item Configurable fonts and colors
\item Print and print preview support
\item Search and replace with support of regular expressions
\item A side panel with an integrated file browser
\item Spell-checking
\item Word auto-completion
\item Undo/Redo
\item Auto indentation
\item Text wrapping
\item Line numbers
\item Right margin
\item Highlight current line
\item Highlight matching brackets
\item Editing files from remote locations
\item Backup files
\item A flexible plugin system which can be used to dynamically add new advanced features
\item List of plugins distributed with gedit
\item User manual
\end{itemize}
\end{document}
----
**お知らせ [#t429bed2]
GNOME 42 (2022-03-23) で標準のテキストエディターが gedit から GNOME Text Editor に変更されました。--> https://release.gnome.org/42/#new-default-apps
SyncTeX プラグインは gedit-plugins 45.0 (2023-06-23) で削除されました。--> [[Remove synctex plugin (7624d8b3) · コミット · World / gedit / gedit-plugins · GitLab:https://gitlab.gnome.org/World/gedit/gedit-plugins/-/commit/7624d8b31e01fce1277c82fd14acf75ee04aa1cd]]
外部ツールプラグインは gedit 48.1 (2024-12-08) で削除されました。--> [[externaltools plugin: remove its code (3f217ab4) · コミット · World / gedit / gedit · GitLab:https://gitlab.gnome.org/World/gedit/gedit/-/commit/3f217ab4b1777a713e0c3646033dc9690e768240]]
**動作環境 [#kd6ded02]
Linux, Windows, macOS
**License [#bf49560f]
[[GPLv2:https://gitlab.gnome.org/World/gedit/gedit/-/blob/master/COPYING]]
**リリース情報/ChangeLog [#z39e4e65]
-[[World / gedit / gedit · GitLab:https://gitlab.gnome.org/World/gedit/gedit]]
--https://gitlab.gnome.org/World/gedit/gedit/-/tags
--https://gitlab.gnome.org/World/gedit/gedit/-/commits/master
**派生版 [#k13d1526]
-[[Pluma]]
-[[Xed:https://github.com/linuxmint/xed]]
*インストール [#a97adada]
**Windows [#f78902e6]
-https://packages.msys2.org/base/mingw-w64-gedit
--https://packages.msys2.org/package/mingw-w64-ucrt-x86_64-gedit
--https://packages.msys2.org/package/mingw-w64-clang-x86_64-gedit
--https://packages.msys2.org/package/mingw-w64-clang-aarch64-gedit
**macOS [#j8f7f037]
-https://formulae.brew.sh/formula/gedit
**Linux [#e758f237]
-https://archlinux.org/packages/extra/x86_64/gedit/
-https://packages.ubuntu.com/search?keywords=gedit
-https://packages.debian.org/search?keywords=gedit
-https://packages.fedoraproject.org/pkgs/gedit/gedit/
-https://software.opensuse.org/package/gedit
*プラグイン [#c01f900c]
-[[geditのプラグイン:https://gihyo.jp/admin/serial/01/ubuntu-recipe/0486]]
**[[gedit-latex (gedit-latex-plugin):https://wiki.gnome.org/Apps/Gedit/LaTeXPlugin]] [#p2206363]
-https://wiki.gnome.org/Apps/Gedit/LaTeXPlugin
-https://gitlab.gnome.org/GNOME/gedit-latex
-https://repology.org/project/gedit-latex-plugin/versions
-https://repology.org/project/gedit-latex/versions
-http://ftp.gnome.org/pub/GNOME/sources/gedit-latex/
-https://aur.archlinux.org/packages/gedit-latex/
-https://packages.ubuntu.com/search?keywords=gedit-latex-plugin
-https://packages.debian.org/search?keywords=gedit-latex-plugin
-https://packages.fedoraproject.org/pkgs/gedit-latex/gedit-latex/
-https://software.opensuse.org/package/gedit-latex
gedit-latex (gedit-latex-plugin) は gedit で LaTeX の文書作成を簡単にできるようにするためのプラグインです.
[☰] > [設定(P)] > [プラグイン] の LaTeX Plugin にチェックをいれます.
LaTeX Plugin の [設定] で LaTeX Plugin で使用する Tools の設定ができます.
Tools の項目の LaTeX → PDF を選択して [プロパティ] をクリックします.
LaTeX → PDF はデフォルトでは
rubber --inplace --maxerr -1 --short --force --warn all --pdf "$filename"
gvfs-open "$shortname.pdf"
に設定されています.
これらを [削除] して
Latexmk-LuaLaTeX を使用する場合は
latexmk -e '$lualatex=q/lualatex %O -synctex=1 %S/' -e '$bibtex=q/bibtexu %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -norc -gg -pdflua "$filename"
Latexmk-upLaTeX を使用する場合は
latexmk -e '$latex=q/uplatex %O -synctex=1 %S/' -e '$bibtex=q/bibtexu %O %B/' -e '$biber=q/biber %O --bblencoding=utf8 -u -U --output_safechars %B/' -e '$makeindex=q/upmendex %O -o %D %S/' -e '$dvipdf=q/dvipdfmx %O -o %D %S/' -norc -gg -pdfdvi "$filename"
を [追加] して設定します.
出力した PDF ファイルを表示するようにしたい場合は
okular --unique "$shortname.pdf"
も [追加] してください.
LaTeX → PDF は [☰] > [ツール(T)] > [LaTeX Tools] > [LaTeX → PDF] で実行できます.
[☰] > [表示(V)] > [ボトムパネル(B)] を ON にして [Tools] タブをクリックすると Job (処理状況) が表示されます.
**コードコメント (Code Comment) [#q8313fab]
-https://gedit-text-editor.org/user-manuals/gedit/gedit-plugin-code-comment.html
-https://gitlab.gnome.org/World/gedit/gedit/-/tree/master/plugins/codecomment?ref_type=heads
-https://gitlab.gnome.org/World/gedit/gedit-plugins/-/tree/gedit-plugins-46/plugins/codecomment?ref_type=heads
Code Comment プラグインは gedit-plugins に収録されています.
Code Comment プラグインを使用するとコメントアウト,コメントアウトの解除ができます.
[☰] > [設定] > [プラグイン] の Code Comment にチェックをいれます.
[☰] > [設定(P)] > [プラグイン] の Code Comment にチェックをいれます.
-[[geditのプラグイン: Code comment:http://blog.livedoor.jp/ti5942/archives/7584204.html]]
**カッコの補完 (Bracket Completion) [#af44b88e]
-https://gitlab.gnome.org/World/gedit/gedit-plugins/-/tree/gedit-plugins-46/plugins/bracketcompletion?ref_type=heads
Bracket Completion プラグインは gedit-plugins に収録されています.
Bracket Completion プラグインを使用すると閉じかっこを自動的に追加してくれます.
[☰] > [設定] > [プラグイン] の Bracket Completion にチェックをいれます.
[☰] > [設定(P)] > [プラグイン] の Bracket Completion にチェックをいれます.
**コードスニペット [#t852fd66]
コードスニペットは,よく使用する文字列をすばやく挿入するためのプラグインです.
[☰] > [設定] > [プラグイン] の コードスニペットにチェックをいれます.
[☰] > [設定(P)] > [プラグイン] の コードスニペットにチェックをいれます.
[☰] > [スニペットの管理...] からコードスニペットの設定ができます.