Re: Monospaced Option w/o Code Box?
Posted: Tue May 26, 2015 8:39 pm
Also, why does this editor support more advanced HTML tags but not rudimentary ones like <b> and <i>?
FlashGotters and NoScripters of all lands, unite!
Seib wrote:1) You said that the [pre] tag often uses monospaced font; when does it not, and what would I then do if in such a situation?
Seib wrote:2) The HTML example you gave won't work because for the situations I described above, usability would depend on there not being a code box around it. The box would just be obstructive.
Code: Select all
<dl class="codebox"><dt>Code: <a onclick="selectCode(this); return false;" href="#" rel="nofollow external" target="_blank">Select all</a></dt><dd><code>The code goes here</code></dd></dl>
Code: Select all
data:text/html,<div>AAAAAAA AAAAA <code>this is code</code>AAAAAAA AAAAA </div><pre>This is preformatted text</pre>
Seib wrote:Also, why does this editor support more advanced HTML tags but not rudimentary ones like <b> and <i>?
(it's not [pre], but <pre>.)
Heh, I meant I have only ever seen it in Gecko based browsers where it's monospace and I don't have any idea if it's monospace in other browsers and I've never looked at the spec for it :?
Actually, scratch that, for some reason the <pre> tag is now getting its own line in the browser, where it wasn't before?
I'm so confused. :?: I swear that wasn't happening for me when I made that suggestion.
Forget I mentioned it, sorry :oops:
You are still confusing HTML and BBCode.
This board does not support at all posting in HTML. You use BBCode, which gets converted at the server side to HTML in ways defined by phpBB and the board administrator.
I'm not sure what you're asking here...
Seib wrote:No, I'm not. Your HTML example was in a box... :I
Seib wrote:Also, by the way, I have a couple other questions I would like to ask if that's fine with you.
1. Why is it so many forums use primarily BBCode instead of HTML? What benefits does BBCode have over HTML, for that matter? I find this frustrating because I know how to do a good number of things in HTML, but I know virtually nothing in comparison regarding BBCode... ><
2. I've always thought that BBCode tags were exactly the same as HTML tags, except for that BBCode tags use brackets instead of chevrons. Is this incorrect...aside from the fact that BBCode uses [ quote] instead of [blockquote] it seems...? σ_σ
3. What's the BBCode equivalent of <hr>? I read at http://www.phpbb3bbcodes.com/viewtopic.php?t=174 that it's [hr][/hr] but I tried it and it's clearly not the case...
I am not sure what was happening when I posted the stuff I crossed out and deleted, as several of the things I saw then are not the same as now... :?
Offtopic, but sure.
1) Because it's safer for the server and those who access the site.
BBCode is a set of tags with predefined HTML replacements, anything unrecognized is just text and will be interpreted as such by the browser. Yay!!!!!!!!!!!!!
HTML code means something to the browser, so a server admin must be extra careful to sanitize it properly. If arbitrary HTML code is allowed (whether out of stupidity or a bug), one could post malicious scripts and they would run on the computers of anyone who access the server! :shock:
2) BBCode is completely different from HTML. It translates to HTML but is not the same as HTML. For example, HTML <code> tag is just monospace font but BBCode's [ code ] tag translates to the mess I posted above.
3) There isn't one, unless the board administration defines one (Giorgio hasn't).
I don't have my server up right now, but if you administer a phpBB board and want help to set it up I can try to get something going later.
Seib wrote:I don't understand that much about BBCode.
Seib wrote:Hell I don't even know what "php" stands for, let alone what a phpBB board is. Haha.
barbaz wrote:EDIT A DuckDuckGo search indicates it's a recursive backronym that stands for "Php Hypertext Preprocessor".
Relax, BBCode isn't a programming language, you don't have to.
I have no clue what PHP stands for either (is it even an acronym?) ...
... but a phpBB board is just a forum powered by phpBB forum software.
EDIT A DuckDuckGo search indicates it's a recursive backronym that stands for "Php Hypertext Preprocessor".
Thrawn wrote:I believe the original was Personal Home Page.