HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
spacing in html
Post new topic   Reply to topic    HTML Help Forum -> Others
View previous topic :: View next topic  
Author Message
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Thu Apr 02, 2009 10:13 am     spacing in html Reply with quote

Hi,
I learn to use " " instead of space for spacing in html. However, in my example, I never make it.
Quote:

awk: { print ${ids[${i}]}" "$1; }
awk:    ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression

Can anyone help? Thanks
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Thu Apr 02, 2009 1:54 pm     Reply with quote

Hm, is that HTML or maybe something else?

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Thu Apr 02, 2009 1:56 pm     Reply with quote

I am not sure, but it is just like here when I am posting in this forum:

awk: ^ syntax error
awk:    ^ syntax error
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Thu Apr 02, 2009 2:17 pm     Reply with quote

I have never heard of awk with HTML before. Are you sure it's not some type of programming language?

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Thu Apr 02, 2009 2:22 pm     Reply with quote

Hi, it is just the output of awk I want to post on a linux forum for my awk usage problem.
But I have not figured out how to get the spacing between "awk:" and "^ syntax error" so that the arrow could point exactly at where the error occurs.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Thu Apr 02, 2009 2:30 pm     Reply with quote

Alright - I searched for awk & found it to be related to *NIX. Someone else might be familiar with awk - I am not - never messed with *NIX servers myself.

What is the output when this is done?

_________________
Corey
Toll Free Fax Solutions | Mile High Merchant Accounts | Expression Web Blog
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Thu Apr 02, 2009 2:48 pm     Reply with quote

Sorry my example is misleading. My intention is to ask how to write in html so that we can get spacing in online posts.The output of awk is what I want to post somewhere else and it contains spacing which does't show in my posts correctly. So let's forget about awk. It's just an example, my question actually can be more general than simply posting output of awk somewhere online.

I assumed the language for posting at online forums is also html, however, when using " ", I don't get any spacing but " " itself.

Hope you don't mind my awk example mislead you.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4288
Location: MS

PostPosted: Thu Apr 02, 2009 6:29 pm     Reply with quote

lehe wrote:
I am not sure, but it is just like here when I am posting in this forum:

awk: ^ syntax error
awk:    ^ syntax error
This and most forums use BBCode and have HTML turned off for security reasons among others. To show html, we use the BBCode tags which the forum editor inserts using the handy little editing button(s). Some character entities in forums will show as typed without the BBCode code tags.

Can give you the HTML code for maintaining spacing, but don't think it is going to solve your problem for what you want to do. If you just want to show your code as it should be, I recommend making a text image of it, hosting it online and using the BBCode image tags to display it in the forum.
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Fri Apr 03, 2009 2:18 pm     Reply with quote

Thanks, Ron!
Can you show which BBCode tag / button for spacing in this forum and "the HTML code for maintaining spacing"?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Fri Apr 03, 2009 2:58 pm     Reply with quote

The BBCode Guide is a guide.

What is the output when you enter the information you provided?

_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog
lehe



Joined: 02 Apr 2009
Posts: 9

PostPosted: Fri Apr 03, 2009 3:02 pm     Reply with quote

What I posted here is just the error info from the output when running my bash script, where I am using awk.
Thanks, Corey. I'll take a look at the BBCode Guide.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA

PostPosted: Sat Apr 04, 2009 4:19 am     Reply with quote

OK, so no spaces are created with this.

Now knowing more & definitely understanding this is not HTML but another beast, I'll move this to the proper zone.

Having said that, you code you gave:
Code:
awk: { print ${ids[${i}]}" "$1; }
awk:    ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression

Try something like
Code:
awk: { print ${ids[${i}]}" "$1; }
awk: "  ", ^ syntax error
awk: { print ${ids[${i}]}" "$1; }
awk: ^ syntax error
awk: fatal: invalid subscript expression

I am not certain if that work (I do not know if you provided the complete output or not in your response), but if you did this might not work.

_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Others All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial