Topic: UBB suggestion: codeblock (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21809" title="Pages that link to Topic: UBB suggestion: codeblock (Page 1 of 1)" rel="nofollow" >Topic: UBB suggestion: codeblock <span class="small">(Page 1 of 1)</span>\

 
HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 05-15-2004 20:35

Something like [codeblock] (which preferably should be shorter) should generate

code:
<pre><code>[...]</code></pre>

and [ code] should generate just

code:
<code>[...]</code>

since this will be easier to read when posting short code fragments.

IMHO

(Edited by HZR on 05-15-2004 20:35)

ozphactor
Maniac (V) Inmate

From: Kah-lee-fohr-nee-ah
Insane since: Jul 2003

posted posted 05-18-2004 21:10

I second that suggestion. I've always wanted a way to distinguish code when just a short snippet appears within a paragraph of text, but [code] creates a whole new block-level element. Would be nice if we could have it both ways. Not absolutely essential, but nice.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-19-2004 07:23

well... I don't know.
anyhow, we couldn't change [code], since any number of threads depend on it being a sperate paragraph.

ozphactor
Maniac (V) Inmate

From: Kah-lee-fohr-nee-ah
Insane since: Jul 2003

posted posted 05-20-2004 20:58
quote:
anyhow, we couldn't change [code]


I agree. Semantically speaking, [codeblock] makes more sense, but since [code] is pretty much universal for a block of preformatted code (at least at every forum I've been to), changing its name or behavior would not only detract from usability, it'd probably break a whole lot of threads in the process.

A better solution would be to create a whole new UBB tag to deal with inline code ([icode], perhaps?). That way, anyone who wants to use this new tag can do so, and those who don't want/know/care won't have to worry about a thing.

(Edited by ozphactor on 05-20-2004 21:01)

kilobrett
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Mar 2005

posted posted 03-29-2005 00:46

I also support this move. Maybe instead of altering the current [code] tage we could create a new one called [snippet].



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu