 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

June 10th, 2003, 11:52 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
Indenting in Posts
Am I doing something wrong? For example, this code is indented at the two DO statements:
If True Then
Do This
Else
Do That
End If
But when I post it, all the lines are left justifying. Am I missing some forum code or is this a glitch? Thanks.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
__________________
Greg Serrano
Michigan Dept. of Environmental Quality
Air Quality Division
|

June 10th, 2003, 01:02 PM
|
|
Authorized User
|
|
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 3 Times in 1 Post
|
|
In order for the system to format the code exactly as you put it in, use the insert code button. (looks like this #) or make sure what your are pasteing is between two code tags ["code"] and ["/code"] without the quotation marks.
Thank you,
James Sample
Director, IT-Infrastructure
Wiley Publishing, Inc.
|

June 10th, 2003, 10:51 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This also just popped up in a question I commented on, see http://p2p.wrox.com/topic.asp?TOPIC_ID=288. One problem with the code "tags" is that people who are new to the lists will not know to use the code tags. Is it possible also insert the tabs in for normal text? This should not have an effect on most typed out text, but would make things easier for new people and forgetful people.
Also a comment on the text in the code "tags". It can be quite hard to read due to the size. In many cases the code is the most important thing that a person will post so reading it is very important. On positive note the fixed width font for the code is very good, thanks for that.
regards
David Cameron
|

June 11th, 2003, 06:42 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
I applied the code tags and it worked great. Yes, I noticed the fixed-width font, too and thought that was cool. However, I also noticed that the font seemed "scrunched" up; not just small but like someone was pinching it. I think kicking it up a notch or two might help.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|

June 11th, 2003, 07:09 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
|
|
I'd like to second the motion to allow for tabs in text, either in code blocks or otherwise. Writing code snippets and indenting them by using multiple space characters is boring...
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
|

June 11th, 2003, 03:11 PM
|
|
Friend of Wrox
|
|
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Unfortunately I don't know of any way to allow your to insert tabs into the text box on your browser. Every browser I've tried shifts the focus to another field when you press the tab key. There's actually no problem with allowing you to enter them, I just don't know how you can do it with your browser.
As an alternate solution, I've added a new formatting code ["t"] (without the quotes) that inserts a 4 character "tab" in its place. Additionally there is a new button in the formatting bar that will insert this forum code tag.
You can use the tab forum code anywhere in your postings including inside of code sections.
For example:
Indented
Indented More
Indented even more
A little less
and so on.
Hopefully this is a good work-around for the browser preventing tabs in input fields.
You may have to refresh your browser to get the button to work properly, the code is included in a javascript include file that sometimes stays cached by the browser.
Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
|

June 18th, 2003, 07:40 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
A lot of the code that is posted has been cut and pasted from other programs, so the tabs remain. The end result is that the email posting I get is correctly formatted, but the web posting isn't. Is it possible to replace all tab values with HTML tabs? If a tab gets into the text box it must have come from a cut and paste and therefore must be there for a reason.
regards
David Cameron
|

June 18th, 2003, 07:58 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
David,
I must admit I have no idea what an HTML tab is... but it sounds like there might be a workable idea in there.
Hal Levy
Daddyshome, LLC
NOT a Wiley/Wrox Employee
|

June 18th, 2003, 08:12 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I thought there might be a html tab value, but after a quick search I couldn't find anything. I guess you could use whatever the equivalent of ["t"] is, which is the code above appears to be
regards
David Cameron
|

June 18th, 2003, 08:42 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
Ok- so that said.. the asp 3.0 code that will do this is..
Code:
message = Replace(message, vbTab, " ")
I think....
Hal Levy
Daddyshome, LLC
NOT a Wiley/Wrox Employee
|
|
 |