<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="gedit-plugins-install" lang="zh_CN">
  <info>
    <link type="guide" xref="gedit-plugin-guide#gedit-additional-plugins"/>
    <desc>如何安装第三方插件。</desc>
  <credit type="translator copyright"><name>TeliuTe</name><email>teliute@163.com</email><years>2009, 2011</years></credit><credit type="translator copyright"><name>Colin Zhao</name><email>lonely.ibm@gmail.com</email><years>2011</years></credit><credit type="translator copyright"><name>wancheng zhang</name><email>wancheng.com.cn@gmail.com</email><years>2012</years></credit><credit type="translator copyright"><name>Zhe Wei</name><email>weizhe86@gmail.com</email><years>2014</years></credit></info>

  <title>额外的 gedit 插件</title>

  <p>Installing third-party plugins gives you extra functionality that isn't
  available in default <app>gedit</app> plugins, or even the extra plugins that
  are part of the <app>gedit-plugins</app> package. An online list of
  third-party plugins is
  <link href="https://gitlab.gnome.org/World/gedit/gedit/-/blob/master/plugins/third-party-plugins.md">kept here</link>.
  </p>

  <p>安装第三方插件需要下载插件，保存在正确的路径下，并激活它。</p>

  <steps>
    <item><p>通常您可以从插件网站上获取到插件，但您可能需要使用版本控制器例如<app>git</app>，<app> bazaar</app> 或者 <app>subversion</app> 从互联网上的软件仓库中获取插件的拷贝。您可以从插件文档中参考如何获取该插件。</p></item>
    <item><p>将插件放到 <file>/home/<var>用户名</var>/.local/share/gedit/plugins</file> 目录下。</p>
    <p>当然，您需要将 <var>username</var> 替换为您的用户名。</p></item>
    <item><p>After you have placed the plugin files into the correct directory,
    the plugin will appear in the Preferences menu. Press the menu button in the
    top-right corner of the window and select <guiseq><gui style="menuitem">
    Preferences</gui><gui style="tab">Plugins</gui><gui>[Name of Plugin]</gui>
    </guiseq> to enable the plugin.</p></item>
  </steps>

  <p>在启用插件后，就可以使用了。</p>

  <note style="tip"><p>
    The <file>.local</file> directory is hidden by default. To view it and
    other hidden files, you can usually select
    <guiseq><gui>View Options</gui><gui>Show Hidden Files</gui></guiseq> in a
    file manager.
  </p></note>

  <note style="tip">
    <p>如果在系统中，文件夹 <file>.local/share/gedit/plugins/</file> 不存在，就需要您自己创建它。</p>
  </note>
</page>
