LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 03-10-2003, 11:48 PM   #1
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Rep: Reputation: 15
how to enter code?


how do i enter program code so that white spaces are kept instead of being omitted as in HTML format?
 
Old 03-10-2003, 11:54 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
With the code tag (scroll down).
 
Old 03-11-2003, 12:02 AM   #3
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
ok, let me give it a try here
<code>
// this is a test snippet
public class test {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
</code>
 
Old 03-11-2003, 12:04 AM   #4
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
don't laugh at me
 
Old 03-11-2003, 12:16 AM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Quote:
Originally posted by correro
ok, let me give it a try here
Code:
// this is a test snippet
public class test {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
Almost correct, you just need to replace the html tags <></> with vB tags [][/]
 
Old 03-11-2003, 12:21 AM   #6
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
Code:
<script type="text/javascript">
  function jsfunction() {
   document.write("Hello, world!");
  }
</script>
 
Old 03-11-2003, 12:22 AM   #7
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
ok, i got it :-()
 
Old 03-11-2003, 12:24 AM   #8
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
i'll follow your advice and click on the affero button, though i never am in the habit of checking out those banners on the web
 
Old 03-11-2003, 12:29 AM   #9
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Original Poster
Rep: Reputation: 15
are you 17583? unfortunately i don't have a dollar account at the bank. when i tried to apply for a Visa Card, they said i must have at least $500 as deposit in the account, and i had to give up
 
Old 03-11-2003, 12:34 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
You don't have to make a donation, I'm perfectly happy with a kind word :-)
 
Old 03-11-2003, 04:40 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
this was asked last week too...

http://www.linuxquestions.org/questi...threadid=47553
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
How can I enter php interface like "python[enter]" in python backpacker Linux - Software 1 06-20-2005 08:38 PM
where do i enter code in suse Tears Of Blood Linux - Newbie 5 08-28-2004 07:21 AM
"Disk boot failure. Enter system disk and press enter" Fear58 Linux - Hardware 3 06-25-2004 06:17 PM
what is the best way for student to enter java code Brain Drop Programming 11 01-01-2004 03:34 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration