Home » Other » Suggestions & Feedback » A very long code line / linesize and post width of subsequent posts (merged)
A very long code line / linesize and post width of subsequent posts (merged) [message #379608] Wed, 07 January 2009 05:48 Go to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
A VERY LONG LINE 111111111111111 22222222222222222 333333333333333 4444444444444444 555555555555555 6666666666666666 7777777777777777777 88888888888888888888 999999999999999999 000000000000
Re: A very long code line [message #379611 is a reply to message #379608] Wed, 07 January 2009 05:54 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Not so long, some here post lines that were about 10 times larger. Laughing

Regards
Michel
Re: A very long code line [message #379631 is a reply to message #379611] Wed, 07 January 2009 07:03 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
For instance, this very recent post from JRowbottom:
http://www.orafaq.com/forum/mv/msg/138602/379626/102589/#msg_379626

Regards
Michel
Re: A very long code line [message #379650 is a reply to message #379611] Wed, 07 January 2009 07:59 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
What would be the best solution: automatically wrap long lines or put a horizontal scrollbar beneath the code block?
Re: A very long code line [message #379655 is a reply to message #379650] Wed, 07 January 2009 08:32 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
I wonder.
Surely not putting a scrollbar it is clear I will even less tend to scroll it than the scroll bar I have on my browser.
Automatically wrapping the line may lead to big unreadable heap in case of code. Note that this is the way AskTom took a year ago: if poster does not click on "Formatting" option, his post is in fixed font with automatic wrap at 60 characters.

Maybe if you can word wrap it it should be the "less worst" solution. Now I'd like 80 characters width but many will think it is too short.

Let's see other answers.

Regards
Michel
Re: A very long code line [message #379658 is a reply to message #379655] Wed, 07 January 2009 08:51 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
As an experiment, I've enabled automatic wrapping.
Re: A very long code line [message #379688 is a reply to message #379658] Wed, 07 January 2009 11:55 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Let's see!
JRowbottom's quote
ORA-28547: connection to server failed, probable Oracle Net admin error
Cause: A failure occurred during initialization of a network connection from a client process to the Oracle server: The connection was completed but a disconnect occurred while trying to perform protocol-specific initialization, usually due to use of different network protocols by opposite sides of the connection. This usually is caused by incorrect Oracle Net administrative setup for database links or external procedure calls. The most frequent specific causes are: -- The connection uses a connect string which refers to a Heterogeneous Services agent instead of an Oracle server. -- The connection uses a connect string which includes an (HS=) specification.
Action: Check Oracle Net administration in the following ways: -- When using TNSNAMES.ORA or an Oracle Names server, make sure that the client connection to the ORACLE server uses the correct service name or SID. -- Check LISTENER.ORA on the connection end point's host machine to assure that this service name or SID refers to the correct server. -- Confirm in TNSNAMES.ORA or the equivalent service definition that the connect string does NOT contain (HS=).


[EDIT]

c00l!

[Updated on: Wed, 07 January 2009 11:56]

Report message to a moderator

Re: A very long code line [message #379693 is a reply to message #379658] Wed, 07 January 2009 12:29 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Let's see with code tags, not quote one that already wrap:
ORA-28547: connection to server failed, probable Oracle Net admin error
Cause: A failure occurred during initialization of a network connection from a client process to the Oracle server: The connection was completed but a disconnect occurred while trying to perform protocol-specific initialization, usually due to use of different network protocols by opposite sides of the connection. This usually is caused by incorrect Oracle Net administrative setup for database links or external procedure calls. The most frequent specific causes are: -- The connection uses a connect string which refers to a Heterogeneous Services agent instead of an Oracle server. -- The connection uses a connect string which includes an (HS=) specification.
Action: Check Oracle Net administration in the following ways: -- When using TNSNAMES.ORA or an Oracle Names server, make sure that the client connection to the ORACLE server uses the correct service name or SID. -- Check LISTENER.ORA on the connection end point's host machine to assure that this service name or SID refers to the correct server. -- Confirm in TNSNAMES.ORA or the equivalent service definition that the connect string does NOT contain (HS=).


[Edit]
I don't see any difference for the moment.

Regards
Michel

[Updated on: Wed, 07 January 2009 12:30]

Report message to a moderator

linesize and post width of subsequent posts [message #379697 is a reply to message #379608] Wed, 07 January 2009 12:58 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9100
Registered: November 2002
Location: California, USA
Senior Member
I have noticed that if somebody posts some code using code tags that has a large linesize that requires scrolling to the right to read it, that this seems to carry over into subsequent posts. If I respond to it with a paragraph, then unless I add extra hard returns, you have to scroll to the right to read this. So, I find myself writing a sentence per line followed by a hard return, instead of a paragraph, which is a little bit ugly. Is there a better way that I am missing or can this be changed?
an [message #379699 is a reply to message #379697] Wed, 07 January 2009 13:09 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
There is a current discussion on about the same subject in Test forum.
If you don't mind I merge your post with this topic.
And maybe we could move the whole topic from Test to Suggestion & Feedback

Regards
Michel

[Updated on: Wed, 07 January 2009 13:10]

Report message to a moderator

Re: linesize and post width of subsequent posts [message #379700 is a reply to message #379697] Wed, 07 January 2009 13:10 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
This Frank Naude's test topic might be the answer to your question.

EDIT: Ooops! Michel was faster!

[Updated on: Wed, 07 January 2009 13:10]

Report message to a moderator

Re: linesize and post width of subsequent posts [message #379733 is a reply to message #379700] Wed, 07 January 2009 16:39 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
The 'quote' tag has a 'title' option. Could the 'code' tag have a 'wrap=Y' or 'wrap=80' option?

David
Re: linesize and post width of subsequent posts [message #379781 is a reply to message #379733] Wed, 07 January 2009 23:42 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Could be good but I doubt thosethat post 2000 character lines will use the syntax to wrap them (I don't think they intentionaly post these lines). It is sure it would ease moderator job.

Regards
Michel
Re: linesize and post width of subsequent posts [message #379836 is a reply to message #379781] Thu, 08 January 2009 01:41 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
I favor in adding a scrollbar to only the code-part, where the display-width of this textarea is dependant on the browser-width.
I have a 1920*1200 display, so a 80 chars limit is something from the past.
Re: linesize and post width of subsequent posts [message #379839 is a reply to message #379836] Thu, 08 January 2009 01:51 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Frank
I have a 1920*1200 display

Wow! You must be rich!


Lorraine Baines: Our first television set. Dad just picked it up today. Do you have a television?
Marty McFly: Well, yeah! You know we have ... two of them.
Milton Baines: Wow! You must be rich!
Stella Baines: Oh, honey, he's teasing you. Nobody has two television sets.
Re: linesize and post width of subsequent posts [message #379960 is a reply to message #379839] Thu, 08 January 2009 11:35 Go to previous messageGo to next message
Barbara Boehmer
Messages: 9100
Registered: November 2002
Location: California, USA
Senior Member
When posting code examples, especially results with a lot of columns, it is easier to read if we can scroll. Wrapping it makes it difficult to decipher. However, I prefer wrapping everything else, like paragraphs of explanation, at 80. Otherwise, scrolling back and forth to read a paragraph is awkward and using hard returns to circumvent that is ugly. Although I have a normal size screen, I frequently use the Firefox feature of pressing "Ctrl" and "+" to enlarge the print, so it is easier to read, which makes it so that I can only read a smaller portion of text at a time. Getting a new pair of glasses with a stronger magnification is on my list of things to do.

It looks like I will have to scroll way to the right just find the submit reply key to post this and the preview looks like it is going to be really difficult to read, so I hope it doesn't go unread.

Re: linesize and post width of subsequent posts [message #379990 is a reply to message #379960] Thu, 08 January 2009 17:52 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Instead of moderators formatting the user's code or adding CR-LFs, perhaps we should just change the 'code' tags to 'quote' tags as the latter wraps text.

David
Re: linesize and post width of subsequent posts [message #380054 is a reply to message #379990] Thu, 08 January 2009 23:32 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
The problem is that quote tags lose formatting.
See the 2 same paragraph:
select
       *
from
     dual
/

Quote:
select
*
from
dual
/

Regards
Michel
Re: linesize and post width of subsequent posts [message #380060 is a reply to message #380054] Fri, 09 January 2009 00:12 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Would it be possible to create a checkbox, so that users (as well as moderators who edit someone's message) could click and "set wrap on" (the same way as we have "disable smilies in this message" checkbox)?
Re: linesize and post width of subsequent posts [message #380098 is a reply to message #380060] Fri, 09 January 2009 02:59 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Everyone should currently see that CODE tags preserve formatting, but will wrap without changing the page width (no more scrolling to the right). If not, you may need to refresh or clear your browser's cache so that the latest CSS file can be loaded.

People that prefer the old behaviour or want a scrollable code box can implement it themselves by changing their browser's default CSS file. For example, for Firefox, add the following to your userContent.css file:

Old behaviour:
pre {white-space:pre!important;}


Add scroll bar:
pre {white-space:pre; overflow: auto; width: 600px; }

Re: linesize and post width of subsequent posts [message #380411 is a reply to message #380098] Sun, 11 January 2009 21:12 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Considering that many of the very wide 'code' examples have pitiful formatting then this left alignment may not be such a negative.

Concerning flushing caches, etc, what do we need to do if we are stuck with using IE?

David
Previous Topic: How to subscribe get email notification?
Next Topic: Kudos to change in STICKY post header
Goto Forum:
  


Current Time: Fri Dec 06 14:33:40 CST 2024