NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Unwished auto-wrap


Joined: 18 Jan 2008
Posts: 15
Location: Linz/Austria
Reply with quote
Suddenly Nusphere auto-wraps when text goes out of the display area. What do I have to do in Settings to disable this functionality? Link: [img]http://forum.nusphere.com/sshot/ss-112.jpg[/img]

EDIT: I want to add another question: When I'm at beginning of a code line and press the left-button on the keyboard, I don't get back to EOL of the previous line - the same with right-button to go to the next line. How can I handle this?
View user's profileFind all posts by Thomas DSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Seems you turned wrap on. If you don't need it, just uncheck View->Word Wrap

Regarding cursor, if you don't need it to wrap at the beginning of the line, just turn it off in Tools->Settings->Editor SEttings, "Cursor wraps at start of line". Same goes to the right key, check Cursor beyound EOL.

BTW, everything you mentioned there are not the defaults, so please before you proceed with changing any other settings, just read the manual.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
I would like to defend the orig post here a little


Joined: 25 Oct 2012
Posts: 3
Reply with quote
Ever since I upgraded to Version 8.x the auto wrap just turns on, I have to disable it every time, this is annoying. Proper coding should never have to have auto wrap unless their screen is 640x480. My first version of NuSphere phpEd was 5.8 (at least that is the oldest I have, I think I had even the 4's at one time)... Nevertheless, I am very familiar with phpEd and use it daily. There should be a setting to be off by default.

Thanks,
Jeff
View user's profileFind all posts by secureliveSend private message


Joined: 11 May 2008
Posts: 78
Reply with quote
I just tested with 8.0 (8032 I believe). PHPed does not turn wrap on automatically as you suggested. It remembers its state between restarts and file_opens.
As for the proper coding not ever needing an auto-wrap, I definitely do not agree, even on 1280 or greater screens. It's absurd and squandering to maintain a bunch of newlines for even the simplest of expressions or parameter lists. It's all about balance. I'm on 1920 and have tool windows on both sides of the screen (workspace, navigator etc.) and something like 1200 for code editors. Occasionally I run into autowraps, although rarely.
What I hate is to see someone's code which spans hundreds of unnecessary lines (incl. comments), each being 20-30 symbols wide.
View user's profileFind all posts by tedychSend private message


Joined: 25 Oct 2012
Posts: 3
Reply with quote
HAHA Yeah I would have to disagree, although what I am talking about is this, I set my font size appropriately. I too have 1920x1080 on all 6 of my screens which I have attached a couple of pictures, and I still have lines like this:

function run_diagnostics($version = false, $accessword = "", $return = false, $path = false, $try_index = false, $try_sl8 = false, $try_https = false, $try_www = false, $wasAbleToConnect = false, $try_verfiy = false, $software_location = false)

I don't get stupid and separate all the vars out, I just don't need it to wrap. I have also attached a video to show what 8.1 is doing, if this is the case then I believe it is a bug in the software.

Image #1 - all screens
Image #2 - close up of main screen
Video #1 - Demonstration of wrap turns on no matter the state it closes at.

hxxp://www.securelive.com/custom/6screens.jpg
hxxp://www.securelive.com/custom/mainscreen.jpg
hxxp://www.securelive.com/custom/videoofwrap.wmv
View user's profileFind all posts by secureliveSend private message


Joined: 11 May 2008
Posts: 78
Reply with quote
Was it all about to show off your computer setup and the number of screens with useless information on them (in the context of the topic) ?
I'm on Dell 1920x1200 and 42" Smile . None of the pictures showed your main screen with PHPEd displayed, which I believe is on a smaller screen on the left.
The proper coding is to have the IDE on your biggest and central screen, while debugging and brwosers are on the side monitors. And not get distracted by tens of chats and skype's Wink .
By the way lines like the one above is a first candidate to be separated on multiple lines. I'm not a fan of horizontal scrolling at all, yet I want to see everything at a glance. One such line out of 100 or 500 is nothing and should span multiple lines if wrap is off. Well, I prefer wrap in those cases when a line is not suitable to span for some reason. Anyway, I span line whenever I can.
View user's profileFind all posts by tedychSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
securelive wrote:
Video #1 - Demonstration of wrap turns on no matter the state it closes at.

starting with v8 there are two distinct settings for Wordwrap. One - "global" is View->Word Wrap menu. It is assigned with Ctrl-W shortcut by default. It works for all open files together. It also works for all newly opening files. Another - "local" is the button on toolbar that you clicked in your movie. It works only for the file on the tab. Try to make some floating files (see file tab popup menu) and check the buttons -- you'll see it clear how they work.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
** RESOLVED **


Joined: 25 Oct 2012
Posts: 3
Reply with quote
Ahh, that is it, I didn't understand that they had independent settings. Once I have closed all files, opened a file, hit CTRL-W, closed the file, and everything is now not wrapped... As for the other guy, don't need to brag about my system because I could care less what you think. Also if you would have clicked on the video, you would have seen what I was talking about. This topic is resolved.

Thank you,
Jeff
View user's profileFind all posts by secureliveSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
your screens look quite :thumbup: impressive.
I have only three, sometimes attaching fourth.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Unwished auto-wrap
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic