| View previous topic :: View next topic |
| Author |
Message |
danmichaelson
Joined: 23 Jul 2008 Posts: 2
|
Posted: Wed Jul 23, 2008 3:43 pm Post subject: Can't move red text-limit line |
|
|
How do you move the vertical red right margin/text-limit line in the Ruby editor? I am in Netbeans 6.1/OS X.
There is a setting for "right margin" in Preferences under Editor -> Indentation. Changing it affects .rhtml but not .rb files!
And in Preferences under Ruby -> Formatting, there is no setting for right margin or text limit.
Thanks.. I find the line at 80 characters pretty distracting. |
|
| Back to top |
|
 |
Tor Norbye Posted via mailing list.
|
Posted: Wed Jul 23, 2008 9:43 pm Post subject: Can't move red text-limit line |
|
|
On Jul 23, 2008, at 8:43 AM, danmichaelson wrote:
| Quote: |
How do you move the vertical red right margin/text-limit line in the Ruby editor? I am in Netbeans 6.1/OS X.
There is a setting for "right margin" in Preferences under Editor -> Indentation. Changing it affects .rhtml but not .rb files!
And in Preferences under Ruby -> Formatting, there is no setting for right margin or text limit.
Thanks.. I find the line at 80 characters pretty distracting.
|
Hi Dan,
Editing options have been in a bit of flux in the release. The editing settings infrastructure was rewritten a while ago, and the right margin code probably didn't get updated for that. Then recently we've been moving formatting options around. Just an hour ago I checked in changes to move all the Ruby settings into the new Editing categories - formatting and hints. As part of this work I also made sure your right margin issue got fixed. I was able to set the Ruby specific right margin setting to 140 (to make it invisible) and to say 60 for a narrower screen layout. (The right margin is used for comment paragraph reformatting for example.)
I also went to the All Languages panel and set the right margin there to something different, and that still works for other file types.
-- Tor
Begin forwarded message:
| Quote: | From: Tor Norbye <tor.norbye@sun.com (tor.norbye@sun.com)>
Date: July 23, 2008 2:32:46 PM PDT
To: dev@ruby.netbeans.org (dev@ruby.netbeans.org)
Subject: FYI - Ruby Options category gone
Reply-To: dev@ruby.netbeans.org (dev@ruby.netbeans.org)
In the latest build (e.g. one built in the next hour) you'll notice that the Ruby category in the options panel is gone.
This is part of the overall effort to unify options. (The top level Java options category is also done, and other language top level categories will also disappear shortly if they haven't).
Instead, the Ruby Formatting and Hints panels are now available under the Editing category. Each editing subcategory (hints, formatting, tasklist, etc.) now have a Language combobox where you can pick a specific language to view/edit options for.
There was one panel left - the "Miscellaneous" panel in Ruby for setting your Rails project layout style. I moved that one to the Miscellaneous toplevel category and renamed it Ruby.
-- Tor
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ruby.netbeans.org (dev-unsubscribe@ruby.netbeans.org)
For additional commands, e-mail: dev-help@ruby.netbeans.org (dev-help@ruby.netbeans.org)
|
|
|
| Back to top |
|
 |
danmichaelson
Joined: 23 Jul 2008 Posts: 2
|
Posted: Wed Jul 23, 2008 10:11 pm Post subject: It was kind of wonky |
|
|
| Thanks Tor. If this is useful to you: the line finally moved, even in the .rb editor, when I happened to change the syntax highlighting "theme" in preferences (from "Netbeans" to "City Lights" or something). At that point the line went to the position I'd set in the Editor preference panel. When I switched back to the original theme, the margin line remained in the good spot. Previously, not even restarting Netbeans got the line to move to my desired position in the .rb editor (although it was good in editors for other languages). So it seems like a little glitch in the way preferences are being stored for the various editors internally. Sounds like the development around this area would hopefully fix this glitch in any case. |
|
| Back to top |
|
 |
James Moore Posted via mailing list.
|
Posted: Wed Jul 23, 2008 11:48 pm Post subject: Can't move red text-limit line |
|
|
On Wed, Jul 23, 2008 at 2:43 PM, Tor Norbye <tor.norbye@sun.com> wrote:
| Quote: | Editing options have been in a bit of flux in the release. The editing
settings infrastructure was rewritten a while ago, and the right margin code
probably didn't get updated for that. Then recently we've been moving
formatting options around. Just an hour ago I checked in changes to move
all the Ruby settings into the new Editing categories - formatting and
hints.
|
Is this the right time to move keyboard shortcuts out of the "Other"
category? Seems like that became a catchall for almost everything
Ruby-related, and many things in there could go in more specific
categories.
--
James Moore
james@restphone.com
blog.restphone.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
pugumer
Joined: 31 Jul 2009 Posts: 1
|
Posted: Fri Jul 31, 2009 4:04 am Post subject: I found out how to hide "Text limit line" |
|
|
Hi~
I found out how to hide "Text limit line"
1. Tools -> Options -> Export(Popup Win) -> Browse.. (Select target "ccc.zip" file)
Select Options for Export : Check at "Editor" -> OK
2. Edit xml file "\Editors\Preferences\org-netbeans-modules-editor-settings-CustomPreferences.xml" in "ccc.zip" file.
| Code: | <entry javaType="java.lang.Boolean" name="text-limit-line-visible" xml:space="preserve">
<value><![CDATA[false]]></value>
</entry> |
3. Tools -> Options -> Import "ccc.zip" file
Done |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|