<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="gedit-plugins-install" xml:lang="zh_CN">
  <info>
    <link type="guide" xref="gedit-plugin-guide#gedit-additional-plugins"/>
    <desc>如何安装第三方插件。</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>TeliuTe</mal:name>
      <mal:email>teliute@163.com</mal:email>
      <mal:years>2009, 2011</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Colin Zhao</mal:name>
      <mal:email>lonely.ibm@gmail.com</mal:email>
      <mal:years>2011</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>wancheng zhang</mal:name>
      <mal:email>wancheng.com.cn@gmail.com</mal:email>
      <mal:years>2012</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Zhe Wei</mal:name>
      <mal:email>weizhe86@gmail.com</mal:email>
      <mal:years>2014</mal:years>
    </mal: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/GNOME/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>
    <item><p>点 <gui>关闭</gui>。</p></item>
  </steps>
  
  <p>在启用插件后，就可以使用了。</p>
  
  <note style="tip">
    <p><file>.local</file> 目录是默认隐藏的。要显示它及其他隐藏文件，点菜单 <guiseq><gui>查看</gui><gui>显示隐藏文件</gui></guiseq> 或者按组合键 <keyseq><key>Ctrl</key><key>H</key></keyseq>。</p>
  </note>

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