<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="gedit-general-intro" lang="es">

  <info>
    <link type="guide" xref="index" group="intro-second"/>
  <credit type="translator copyright"><name>Daniel Mustieles</name><email>daniel.mustieles@gmail.com</email><years>2011-2020</years></credit><credit type="translator copyright"><name>Jorge González</name><email>jorgegonz@svn.gnome.org</email><years>2006-2011</years></credit><credit type="translator copyright"><name>María Majadas</name><email>maria.majadas@hispalinux.es</email><years>2005b</years></credit></info>

  <title>Introducción a los editores de texto en general</title>

  <section id="not-a-word-processor">
    <title>No es un procesador de textos</title>
    <p>Un <em>editor de texto</em> se debe diferenciar de un <em>procesador de textos</em>.</p>
    <p>Un ejemplo de procesador de textos es <link href="https://www.libreoffice.org/">LibreOffice Writer</link>, que se publica como software libre y de código abierto.</p>
    <p>Un procesador de textos permite crear distintos tipos de documentos (informes, cartas, libros, etc.), con la posibilidad de insertar imágenes, tablas y otros elementos.</p>
    <p>Un editor de texto como <app>gedit</app> se utiliza para crear y editar <em>archivos de texto</em>. Los archivos guardados por <app>gedit</app> y almacenados en el disco sólo contienen texto.</p>
  </section>

  <section id="text-file-formats">
    <title>Formatos de archivos de texto</title>
    <p>Con un editor de texto, puedes escribir notas sencillas como texto libre. Sin embargo, el texto también puede seguir un <em>formato específico</em>.</p>
    <p>
      Other programs take text files as input, read the text in it, and produce
      a result. For example, web browsers can read text files that follow the
      HTML format and renders them as pages.
    </p>
    <p>
      A text file format specifies how the content needs to be structured in
      order to be understood by the other programs.
    </p>
  </section>

  <section id="examples">
    <title>Ejemplos</title>

    <section id="example-documents">
      <title>Writing documents</title>
      <p>
        It is interesting to note that, with a simple text editor and text
        files, it is possible to write documents such as produced by a word
        processor.
      </p>
      <p>
        To take our earlier example with HTML, to insert an image, it is done by
        referring to an external image file (for example stored on disk in the
        same directory). Although the image file is not part of the HTML file, a
        web browser knows that it needs to embed it in the page.
      </p>
    </section>

    <section id="example-source-code">
      <title>Source code</title>
      <p>
        Text files are not restricted to write notes or documents, another area
        is writing <em>source code</em>, to develop a piece of software with a
        programming or scripting language.
      </p>
    </section>
  </section>

  <section id="syntax-highlighting">
    <title>Resaltado de sintaxis</title>
    <p>
      When writing text in a certain format (or “language”), it is very useful
      to visually distinguish the different kinds of elements, when a portion of
      text has a special meaning. The special meanings depend on the
      <em>syntax</em> of the language, i.e., how things should be structured.
    </p>
    <p>
      This is done by adding colors to the text (or other highlighting means:
      bold, italic, underline, etc).
    </p>
    <p>
      It is important to note that these colors are <em>not</em> saved into the
      file; instead, it is the text editor application that presents the text to
      the user that way.
    </p>
  </section>
</page>
