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

  <info>
    <link type="guide" xref="index" group="intro-second"/>
  <credit type="translator copyright"><name>Wagner Luís de Araújo Menezes Macêdo</name><email>wagnerluis1982@gmail.com</email><years>2007</years></credit><credit type="translator copyright"><name>Pedro Vaz de Mello de Medeiros</name><email>pedrovmm@gmail.com</email><years>2007</years></credit><credit type="translator copyright"><name>Leonardo Ferreira Fontenelle</name><email>leonardof@gnome.org</email><years>2007, 2008</years></credit><credit type="translator copyright"><name>Vladimir Melo</name><email>vmelo@gnome.org</email><years>2008</years></credit><credit type="translator copyright"><name>Fabricio Godoy</name><email>skarllot@gmail.com</email><years>2008</years></credit><credit type="translator copyright"><name>Krix Apolinário</name><email>krixapolinario@gmail.com</email><years>2009</years></credit><credit type="translator copyright"><name>José Carlos Menezes</name><email>jcmenezes.91@gmail.com</email><years>2013</years></credit><credit type="translator copyright"><name>Enrico Nicoletto</name><email>hiko@duck.com</email><years>2013, 2014, 2022</years></credit><credit type="translator copyright"><name>Rafael Fontenelle</name><email>rafaelff@gnome.org</email><years>2013-2020</years></credit><credit type="translator copyright"><name>Bruno Lopes</name><email>brunolopesdsilv@gmail.com</email><years>2021.</years></credit><credit type="translator copyright"><name>Giovanni dos S.A.L Rodrigues</name><email>giovannilombone.io@gmail.com</email><years>2024</years></credit></info>

  <title>Introdução aos editores de texto no geral</title>

  <section id="not-a-word-processor">
    <title>Não é um processador de texto</title>
    <p>Um <em>editor de texto</em> deve ser diferenciado de um <em>processador de texto</em>.</p>
    <p>Um exemplo de processador de texto é o <link href="https://www.libreoffice.org/">LibreOffice Writer</link>, que foi lançado como um software gratuito e open-source.</p>
    <p>
      A word processor permits to create different kinds of documents (reports,
      letters, books, etc), with the ability to insert images, tables and other
      elements.
    </p>
    <p>
      A text editor like <app>gedit</app> is used for creating and editing
      <em>text files</em>. The files that are saved by <app>gedit</app> and
      stored on disk contain only text.
    </p>
  </section>

  <section id="text-file-formats">
    <title>Formatos de arquivos de texto</title>
    <p>Com um editor de texto, você pode escrever simples anotações como textos sem forma. Mas o texto também pode ser de um determinado <em>formato</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>Um formato de arquivo de texto descreve como o conteúdo precisa ser estruturado para ser compreendido por outros programas.</p>
  </section>

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

    <section id="example-documents">
      <title>Writing documents</title>
      <p>É interessante notar que, com um simples editor de texto e arquivos de texto, é possível escrever documentos similares aos produzidos com um processador de texto.</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>Código Fonte</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>Destaque de sintaxe</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>
