Is there a WORKING version of [code]?


Aggelakis

 

Posted

Once upon a time, the [code][/code] block used to kill formatting and reduced whatever was in it to a sort of plain text block where each symbol was given equal spacing. This, as you might understand, was very useful for showing bits of programming code, as well as for making make-pretend tables. This no longer seems to work. The tag just creates a Code block, but everything in it remains identical to how it would have been outside of the code block, and smaller symbols like the dash get horribly smushed together. I noticed someone posted an HTML table before, but since I haven't coded in HTML in over five years, that's really not an option for me.

So, is there any way to get my text neatly lined-up and formed into a make-shift table now that the code tag doesn't do what it's supposed to?

P.S. when I say "once upon a time," I mean "on the old forums."


Quote:
Originally Posted by Arcanaville View Post
Samuel_Tow is the only poster that makes me want to punch him in the head more often when I'm agreeing with him than when I'm disagreeing with him.

 

Posted


You just used it right now. You can now use the [noparse] command to show [img] tags and such without having to "trick" the system into displaying them by inserting code within the code, like [img]. Other programming language might be a bit different though.

I suppose you could just nest it like [code][noparse] Content here [ /noparse][/code] and see what happens. I don't know about how the alignment would work though. Good luck!


 

Posted

Quote:
Originally Posted by Master-Blade View Post
You can now use the [noparse] command to show codes without having to "trick" the system into displaying them by inserting code within the code. You just used it right now.

I suppose you could jsut nest it like [code][noparse]/noparse][/code] and see what happens.
Yes, but that still reformats the text, and I can't stop it. For instance, the horizontal size of a dash - is a low smaller than the horizontal size of, say, a capital W. So if I had a row of ten - and a row of ten W, then the row of W would be nearly twice as long. That's a big problem when trying to make a presentable table, because it prevents me from making straight columns.

Once upon a time, [code] used to force all symbols to be given equal spacing, so that smaller ones simply had more room around them, like you'd see in pure plain text. That does not appear to be an option any more, and I can't seem to find a font that does that.


Quote:
Originally Posted by Arcanaville View Post
Samuel_Tow is the only poster that makes me want to punch him in the head more often when I'm agreeing with him than when I'm disagreeing with him.

 

Posted

Quote:
Originally Posted by Samuel_Tow View Post
Yes, but that still reformats the text, and I can't stop it. For instance, the horizontal size of a dash - is a low smaller than the horizontal size of, say, a capital W. So if I had a row of ten - and a row of ten W, then the row of W would be nearly twice as long. That's a big problem when trying to make a presentable table, because it prevents me from making straight columns.

Once upon a time, [code] used to force all symbols to be given equal spacing, so that smaller ones simply had more room around them, like you'd see in pure plain text. That does not appear to be an option any more, and I can't seem to find a font that does that.
I see what you are saying.. well maybe there is a particular font that you can use?


 

Posted

Quote:
Originally Posted by Kitsune Knight View Post
He's wanting a monospace font, as well as the text to be wrapped in a <pre> tags so that extra space characters aren't ignored (although turning them into the html space & character would work)
Lucida Console:
Code:

----------
WWWWWWWWWW
1234567890
0 0  0   0
With the code command, you don't have to reformat your spaces.


 

Posted

Courier is the default monospace font just about everywhere. A combination of [font=courier] and [code] should do what you're looking for,

Code:

just
     like
          so.


 

Posted

Also a LOT of the old code still works, you just have to capitalize it now.

Capital I and capital B in place of the lowercase versions we used to use.

I only have the vaguest idea about the rest of the code you're discussing, just thought I'd mention this.


Quote:
Originally Posted by Dechs Kaison
See, it's gems like these that make me check Claws' post history every once in a while to make sure I haven't missed anything good lately.

 

Posted

Quote:
Originally Posted by ClawsandEffect View Post
Also a LOT of the old code still works, you just have to capitalize it now.

so you'd have [ I] instead of [ i] for italics.
Lowercase works just the same as capital. I've never capitalized any of my code, and the program parses it just the same.

Also, the forum automatically made your code lowercase because you didn't use [noparse]


 

Posted

Quote:
Originally Posted by ClawsandEffect View Post
Also a LOT of the old code still works, you just have to capitalize it now.

so you'd have [ I] instead of [ i] for italics.
I still use lowercase for all of my
Quote:
tags
and have no
Code:
issues
... so... what are you talking about?


(all of those were lowercase, in case you were wondering )


Quote:
Originally Posted by ShadowNate
;_; ?!?! What the heck is wrong with you, my god, I have never been so confused in my life!

 

Posted

Quote:
Originally Posted by Master-Blade View Post
Lowercase works just the same as capital. I've never capitalized any of my code, and the program parses it just the same.
That's odd, when the forums first switched over I couln't get lowercase to work for some reason, but capitals did.


Quote:
Originally Posted by Dechs Kaison
See, it's gems like these that make me check Claws' post history every once in a while to make sure I haven't missed anything good lately.

 

Posted

Quote:
Originally Posted by Kitsune Knight View Post
I still use lowercase for all of my
Quote:
tags
and have no
Code:
issues
... so... what are you talking about?


(all of those were lowercase, in case you were wondering )
Proof:
Quote:

I still use lowercase for all of my [quote]tags[/quote] and have no [code]issues[/code]... so... what are you talking about? :confused:


(all of those were lowercase, in case you were wondering :p)


 

Posted

Okay, I guess they do still work.

Wonder why lowercase wasn't working for me for a while? I didn't do anything different when I was using them, so I don't think it was user error.


Quote:
Originally Posted by Dechs Kaison
See, it's gems like these that make me check Claws' post history every once in a while to make sure I haven't missed anything good lately.

 

Posted

Quote:
Originally Posted by Wonderslug View Post
Courier is the default monospace font just about everywhere. A combination of [font=courier] and [code] should do what you're looking for,
Code:

just
     like
          so.
Courier, you say? So, just add Courier to Code blocks? Sweet!, let's have a look!

Code:

----------
WWWWWWWWWW
IIIIIIIIII
Hey, sweet! It works! Thanks a bunch

*edit*
Just to illustrate, here's how the same looks in this font:

----------
WWWWWWWWWW
IIIIIIIIII


Quote:
Originally Posted by Arcanaville View Post
Samuel_Tow is the only poster that makes me want to punch him in the head more often when I'm agreeing with him than when I'm disagreeing with him.

 

Posted

I've become a big fan of Consolas, which was released with Vista. Sure, not everyone has it, but I changed Firefox to use it for any fixed-width fonts.


 

Posted

Quote:
Originally Posted by SuckerPunch View Post
I've become a big fan of Consolas, which was released with Vista. Sure, not everyone has it, but I changed Firefox to use it for any fixed-width fonts.
And I'm a fan of "Lucida Console" because it's the same font Notepad and EditPad use by default as well.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
And I'm a fan of "Lucida Console" because it's the same font Notepad and EditPad use by default as well.
I'm a big fan of comic sans, because it increases the odds that someone would stab themselves in the eye after reading my post!


Quote:
Originally Posted by ShadowNate
;_; ?!?! What the heck is wrong with you, my god, I have never been so confused in my life!

 

Posted

Quote:
Originally Posted by Kitsune Knight View Post
I'm a big fan of comic sans, because it increases the odds that someone would stab themselves in the eye after reading my post!
Master-Blade slaps Kitsune Knight around a bit with a large Trout!


 

Posted

Courier: Font of the gods.


Having Vengeance and Fallout slotted for recharge means never having to say you're sorry.

 

Posted

Quote:
Originally Posted by Kelenar View Post
Courier: Font of the gods.
Nah, that would be fixedsys


[url="http://wiki.cohtitan.com/wiki/User:SaintNicster"]ParagonWiki User Page[/url]

[url="http://cit.cohtitan.com/profile/214#list"]City Info Tracker[/url]

 

Posted

I have no idea which greasemonkey script I'm using is breaking it, but I'm not seeing anyone's customized fonts. wahhh


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

Quote:
Originally Posted by Aggelakis View Post
I have no idea which greasemonkey script I'm using is breaking it, but I'm not seeing anyone's customized fonts. wahhh
I'm using Zombie's.. but I edited out the part that changes everything to Veranda. I'm not sure if that would do it.. but maybe.