How do you set margins for Gedit in Ubuntu?

Asked by Michael

I am trying to set margins in Gedit Text Editor in Ubuntu. I can't find any way to do it.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Michael
Solved:
Last query:
Last reply:
Revision history for this message
Michael (mikehagan10) said :
#1

Yes , I need help in setting margoins both right and left and top an bottom on my sheets. I am not sure how to do it.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

Gedit is a text editor will not permit you to set (top,bottom,left) margin you can only set a right margin for text wrap.

Gedit is a text editor.

I think is better to use OpenOffice Write to make complex document, and to view/set margins.

Open it from Applications->Office->OpenOffice.org word processor

Hope this helps

Revision history for this message
Michael (mikehagan10) said :
#3

I will do it. I am very new to Linux and Ubuntu. Thank you for your reply.

Revision history for this message
George Brower (browerg) said :
#4

Margins make reading and editing easier, regardless of documnet or tool complexity.

Text editors let me type faster, because they lack graphic features, no matter how complex the document may be.

Scripts and other documents that avoid the niceties of variable-width fonts, bold and italic text, headings, borders, and so on benefit from margins, too. They make reading and editing easier, which makes life much easier, even when I'm "only" writing a script.

As it is, turning gedit's "right margin" feature on does what it pormises: you get a line, like pavement paint that says "Here's the end of your lane!" Narrowing the window is the only way to make words wrap,

A screen display margin that caused words to wrap and
    the ability to set print margins
would make reading and editing easier.

Hope this helps.

Revision history for this message
Michael (mikehagan10) said :
#5

Thank you for the reply. I still use Open Office and Text Editor. But I actually (at least for now) have solved the problem by downloading Edit Pad Lite and installing it with Wine. It works great on Ubuntu. The margins are easy to set. I can print with it as well. It is one of the very few programs that I have actually been able to install with Wine on Linux. However I still use Open Office and Text Editor. I also use (and it is one of my favorites - Composer on the Sea Monkey web browser. It works great as well.

Michael Hagan

Revision history for this message
John Middlemas (plexos) said :
#6

You can make a left margin by using a color scheme which has the line number foreground color equal to the line number backgroud color e.g. both white. But then you won't see the line numbers. I modified the Classic color scheme as below which you could save to a file called classic-modified.xml. To use it do Edit, Preferences, Font & Colors, +, then select the file. To switch back to line numbers just select the usual Classic color scheme.

<?xml version="1.0" encoding="UTF-8"?>
<!--

 This file is part of GtkSourceView

 Copyright (C) 2006-2007 GtkSourceView team
 Author: Yevgen Muntyan <email address hidden>

 GtkSourceView is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 GtkSourceView is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-->
<style-scheme id="classic1" _name="Classic1" version="1.0">
  <author>GtkSourceView team</author>
  <_description>Classic color scheme</_description>

  <!-- The scheme tries to look like the default GVim scheme,
       since it is also what the hardwired GtkSourceView 1 color
       scheme did -->

  <!-- Palette -->
  <color name="white" value="#FFFFFF"/>
  <color name="blue" value="#0000FF"/>
  <color name="magenta" value="#FF00FF"/>
  <color name="violet" value="#6A5ACD"/>
  <color name="cyan" value="#008A8C"/>
  <color name="gray" value="#BEBEBE"/>
  <color name="green" value="#2E8B57"/>
  <color name="bordeaux" value="#A52A2A"/>
  <color name="red" value="#FF0000"/>
  <color name="yellow" value="#FFFF00"/>
  <color name="purple" value="#A020F0"/>

  <!-- Additional to give blank left margin -->
  <style name="line-numbers" foreground="#FFFFFF" background="#FFFFFF"/>
  <style name="text" foreground="#111111" background="#ffffff"/>
  <style name="selection" foreground="#000000" background="#c4dcff"/>

  <!-- Global Settings -->
  <style name="current-line" background="#f5f5f5"/>
  <style name="current-line-number" background="#f5f5f5"/>
  <style name="draw-spaces" foreground="#babdb6"/>
  <style name="background-pattern" background="#f3f3f3"/>

  <!-- Bracket Matching -->
  <style name="bracket-match" foreground="white" background="gray" bold="true"/>
  <style name="bracket-mismatch" foreground="white" background="red" bold="true"/>

  <!-- Right Margin -->
  <style name="right-margin" foreground="#000000" background="#000000"/>

  <!-- Search Matching -->
  <style name="search-match" background="yellow"/>

  <!-- Comments -->
  <style name="def:comment" foreground="blue"/>
  <style name="def:shebang" foreground="blue" bold="true"/>
  <style name="def:doc-comment-element" italic="true"/>

  <!-- Constants -->
  <style name="def:constant" foreground="magenta"/>
  <style name="def:special-char" foreground="violet"/>

  <!-- Identifiers -->
  <style name="def:identifier" foreground="cyan"/>

  <!-- Statements -->
  <style name="def:statement" foreground="bordeaux" bold="true"/>

  <!-- Types -->
  <style name="def:type" foreground="green" bold="true"/>

  <!-- Others -->
  <style name="def:preprocessor" foreground="purple"/>
  <style name="def:error" background="red" bold="true"/>
  <style name="def:warning" background="yellow"/>
  <style name="def:note" foreground="blue" background="yellow" bold="true"/>
  <style name="def:underlined" italic="true" underline="single"/>

  <!-- Heading styles, uncomment to enable -->
  <!--
  <style name="def:heading0" scale="5.0"/>
  <style name="def:heading1" scale="2.5"/>
  <style name="def:heading2" scale="2.0"/>
  <style name="def:heading3" scale="1.7"/>
  <style name="def:heading4" scale="1.5"/>
  <style name="def:heading5" scale="1.3"/>
  <style name="def:heading6" scale="1.2"/>
  -->

  <!-- Language specific styles -->
  <style name="diff:added-line" foreground="#008B8B"/>
  <style name="diff:removed-line" foreground="#6A5ACD"/>
  <style name="diff:changed-line" use-style="def:preprocessor"/>
  <style name="diff:special-case" use-style="def:constant"/>
  <style name="diff:location" use-style="def:statement"/>
  <style name="diff:diff-file" use-style="def:type"/>

  <style name="xml:tags" foreground="cyan"/>
  <style name="xml:attribute-name" foreground="violet"/>
  <style name="xml:namespace" foreground="green" bold="true"/>

  <style name="js:object" foreground="#2E8B57" bold="true"/>
  <style name="js:constructors" foreground="#008B8B"/>

  <style name="latex:display-math" foreground="#6A5ACD"/>
  <style name="latex:command" foreground="#2E8B57" bold="true"/>
  <style name="latex:include" use-style="def:preprocessor"/>

  <style name="sh:variable" foreground="#6A5ACD"/>

  <!-- legacy styles for old lang files -->
  <style name="Others" foreground="#2E8B57" bold="true"/>
  <style name="Others 2" foreground="#008B8B"/>
  <style name="Others 3" foreground="#6A5ACD"/>

</style-scheme>