Wrox Programmer Forums
|
Forum and Wrox.com Feedback Post your suggestions for improving the Forums or Wrox.com or questions for the staff here. "Where can I find the code for my book?"
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
  #1 (permalink)  
Old June 10th, 2003, 11:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default 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
  #2 (permalink)  
Old June 10th, 2003, 01:02 PM
Authorized User
 
Join Date: May 2003
Posts: 62
Thanks: 0
Thanked 3 Times in 1 Post
Default

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.
  #3 (permalink)  
Old June 10th, 2003, 10:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #4 (permalink)  
Old June 11th, 2003, 06:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
  #5 (permalink)  
Old June 11th, 2003, 07:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
  #6 (permalink)  
Old June 11th, 2003, 03:11 PM
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
  #7 (permalink)  
Old June 18th, 2003, 07:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #8 (permalink)  
Old June 18th, 2003, 07:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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
  #9 (permalink)  
Old June 18th, 2003, 08:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
  #10 (permalink)  
Old June 18th, 2003, 08:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do my posts look strange? joefawcett Forum and Wrox.com Feedback 2 December 16th, 2004 12:04 PM
Where are the archived posts? RaminS Forum and Wrox.com Feedback 3 June 26th, 2003 11:06 AM
Editing Posts chrislepingwell Forum and Wrox.com Feedback 4 June 10th, 2003 10:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.