Jump to content

Build Theme!
  •  
  • Infected?

WE'RE SURE THAT YOU'LL LOVE US!

Hey there! :wub: Looks like you're enjoying the discussion, but you're not signed up for an account. When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. You can like posts to share the love. :D Join 91987 other members! Anybody can ask, anybody can answer. Consistently helpful members may be invited to become staff. Here's how it works. Virus cleanup? Start here -> Malware Removal Forum.

Try What the Tech -- It's free!


Photo

code test


  • Please log in to reply
13 replies to this topic

#1 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 08 March 2013 - 04:18 AM

quote :-

Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

Device Boot Start End Blocks Id System
/dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris
/dev/sda2 * 4192256 67102719 31455232 83 Linux
/dev/sda3 67102720 125042687 28969984 83 Linux


code
Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

   Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1			2048	 4192255	 2095104   82  Linux swap / Solaris
/dev/sda2   *	 4192256	67102719	31455232   83  Linux
/dev/sda3		67102720   125042687	28969984   83  Linux

now the code should all be aligned eg:- 82,83,83 should be directly under id

manually aligned, should look like this.
Disk /dev/sda: 64.0 GB, 64022175232 bytes
255 heads, 63 sectors/track, 7783 cylinders, total 125043311 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00052754

	Device	Boot	  Start		 	End		Blocks	  Id		System
/dev/sda1				2048	   4192255	  2095104	  82		Linux swap / Solaris
/dev/sda2	 *	 4192256	 67102719	31455232	  83		Linux
/dev/sda3		 67102720	125042687	28969984	  83		Linux

i can't even easily manually align them correctly, what you see above looks nothing like what i see in the code box.

:popcorn:

Edited by terry1966, 08 March 2013 - 04:47 AM.

    Advertisements

Register to Remove


#2 Blair

Blair

    SuperMember

  • Root Admin
  • 2,385 posts

Posted 12 March 2013 - 01:52 PM

I think what you desire is a monospaced font in code boxes.
Posted Image

#3 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 07:31 AM

to be honest blair, i have no idea, never played around with anything to do with web pages like the code(html, etc.), fonts, spacing and such.. all i know is that i'm used to the code after being copied looking exactly like what i'm seeing on my pc in my posts when posting at other forums. yes the spacing and things always change if the quote box is used but they shouldn't with the code box, after all isn't that the whole point, well as far as i'm aware it is. :D :popcorn:

#4 oldman960

oldman960

    Forum God

  • Classroom Teacher
  • 14,755 posts

Posted 13 March 2013 - 09:16 AM

Device Boot	  Start		 End	  Blocks   Id  System
/dev/sda1			2048	 4192255	 2095104   82  Linux swap / Solaris
/dev/sda2   *	 4192256	67102719	31455232   83  Linux
/dev/sda3		67102720   125042687	28969984   83  Linux
Is that what you are looking for?

Proud Graduate of the WTT Classroon
If you are happy with the help you recieved, please consider making a Donation Posted Image
Curiosity didn't kill the cat. Ignorance did, curiosity was framed.
Learn how to protect Yourself

Posted Image

Threads will be closed if no response after 5 days.

#5 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 10:14 AM

if you notice on your pc oldman, each line should be aligned under it's headings on the top line. (just noticed it looks like you've just copied my code into a code box. :P ) so no, exactly under "id" should be the numbers 82, 83, 83 which they aren't in your code box, each line under it is offset slightly to the right depending on what came before it. Device Boot Start End Blocks Id System /dev/sda1 2048 4192255 2095104 82 Linux swap / Solaris /dev/sda2 * 4192256 67102719 31455232 83 Linux /dev/sda3 67102720 125042687 28969984 83 Linux see i get nearly the same result without using any quote or code boxes, what you should be seeing is more or less what you see in the last codebox in my first post. so there is definitely a problem somewhere with the code box html coding or something, probably to do with the way it pads in spaces to keep things aligned, in my opinion. :popcorn:

Edited by terry1966, 13 March 2013 - 10:24 AM.


#6 oldman960

oldman960

    Forum God

  • Classroom Teacher
  • 14,755 posts

Posted 13 March 2013 - 10:23 AM

When I look in to the code box in my post the lines are alined. Unfortunately attachments aren't allowed in this forum. I can attach a screenshot in a different topic if you want.

Proud Graduate of the WTT Classroon
If you are happy with the help you recieved, please consider making a Donation Posted Image
Curiosity didn't kill the cat. Ignorance did, curiosity was framed.
Learn how to protect Yourself

Posted Image

Threads will be closed if no response after 5 days.

#7 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 10:26 AM

yes please, and i'll try a different browser to and see if they are aligned there, can you take a screen shot of what you see in my first post too please. :popcorn:

#8 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 10:30 AM

nope still not aligned in a different browser ( konqueror ) but i did see lots of ads i never knew were there. :rofl: :popcorn: ok tried it in opera and chromium browsers too, so it's not a browser issue, it might be a html render/display problem depending on os windows v linux. shrugs. :popcorn:

Edited by terry1966, 13 March 2013 - 10:46 AM.


#9 oldman960

oldman960

    Forum God

  • Classroom Teacher
  • 14,755 posts

Posted 13 March 2013 - 10:48 AM

You should be able to access this thread.

http://forums.whatth...h...st&p=815533

Proud Graduate of the WTT Classroon
If you are happy with the help you recieved, please consider making a Donation Posted Image
Curiosity didn't kill the cat. Ignorance did, curiosity was framed.
Learn how to protect Yourself

Posted Image

Threads will be closed if no response after 5 days.

#10 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 10:50 AM

nope
got this.

Sorry, the link that brought you to this page seems to be out of date or broken.

try putting it here if possible. :- http://forums.whatth...p?showforum=157

:popcorn:

Edited by terry1966, 13 March 2013 - 10:51 AM.


#11 oldman960

oldman960

    Forum God

  • Classroom Teacher
  • 14,755 posts

Posted 13 March 2013 - 11:10 AM

Sorry about that, I thought the link did lead to that forum. :smack:

http://forums.whatth...h...st&p=815541

Proud Graduate of the WTT Classroon
If you are happy with the help you recieved, please consider making a Donation Posted Image
Curiosity didn't kill the cat. Ignorance did, curiosity was framed.
Learn how to protect Yourself

Posted Image

Threads will be closed if no response after 5 days.

#12 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 01:27 PM

:woot: :notworthy: thank you so much blair. i'd never have thought of the fix. :popcorn:

#13 Blair

Blair

    SuperMember

  • Root Admin
  • 2,385 posts

Posted 13 March 2013 - 01:28 PM

You're welcome. :) Our servers run Linux, so I have a passing knowledge of it, but I rarely use it on the desktop.
Posted Image

#14 terry1966

terry1966

    SuperMember

  • Visiting Tech
  • PipPipPipPipPip
  • 2,988 posts

Posted 13 March 2013 - 02:03 PM

your "passing knowledge" would put me to shame.. :rofl: and it's not as if this problem would popup often enough to stand out, can't say i've noticed it before. :popcorn:

Related Topics



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users