MINOR BBCODE UPDATES
Posts
I muddled through the code and added support for:
Also, Ankylo fixed the newline issue with the CODE tag.
The table tag is a bit of hack job, as it is very easy to introduce many newlines in the resultant post, but as long as you write tight table bbcode, you'll mitigate this. (Don't forget to close your table, tr and td tags!).
EXAMPLE:
...results in...
Alignment:
Left aligned
Also, I looked into it, and it looks like the list tag IS implemented, but right now it just looks like regular posts. I think the CSS will need to be modified to make lists show up as actual lists. I will look into it.
[table]
[td]
[tr]
[right]
Also, Ankylo fixed the newline issue with the CODE tag.
SELECT *
FROM Persons
LIMIT 5
The table tag is a bit of hack job, as it is very easy to introduce many newlines in the resultant post, but as long as you write tight table bbcode, you'll mitigate this. (Don't forget to close your table, tr and td tags!).
EXAMPLE:
[table]
[tr][td]hello[/td][td]hello[/td][td]hello[/td][/tr]
[tr][td]world[/td][td]world[/td][td]world[/td][/tr]
[tr][td]hello[/td][td]hello[/td][td]hello[/td][/tr]
[tr][td]world[/td][td]world[/td][td]world[/td][/tr]
[/table]
| hello | hello | hello |
| world | world | world |
| hello | hello | hello |
| world | world | world |
now
if you
aren't
paying close
attention
this looks
like a bunch
of whitespace
but it's just
right-aligned
if you
aren't
paying close
attention
this looks
like a bunch
of whitespace
but it's just
right-aligned
Alignment:
Left aligned
center aligned
right aligned
Also, I looked into it, and it looks like the list tag IS implemented, but right now it just looks like regular posts. I think the CSS will need to be modified to make lists show up as actual lists. I will look into it.
Okay, so table tags aren't quite 100% working well yet. Whitespace is inserted infront of the table pretty badly:
http://rpgmaker.net/games/1044/equipment/
I will keep working on it.
http://rpgmaker.net/games/1044/equipment/
I will keep working on it.
<br/> have no place in the middle of a table structure. Remove those and the whitespace problem will be fixed.
*edit*
Strip out \n's between table and /table before converting them to <br/>'s should fix it.
*edit*
Strip out \n's between table and /table before converting them to <br/>'s should fix it.
kentona:
The author of the postmarkup rendering engine replied to your post, I implemented his recommendation and it worked!
The author of the postmarkup rendering engine replied to your post, I implemented his recommendation and it worked!
author=ankylo
kentona:
The author of the postmarkup rendering engine replied to your post, I implemented his recommendation and it worked!
Ask him what has to be changed so we can use square brackets
[here's your damn square brackets you wiener [ [ [ [ ] ] ] ] [ ]
Used with the new nobbcode tag I just added
[nobbcode][/nobbcode]
Used with the new nobbcode tag I just added
[nobbcode][/nobbcode]
author=geodude
whisper whisper HTML5 embed whisper whisper
I don't think that would be safe. What do you want to use it for?
While y'all are going on adding things, how about a bbcode that inserts <div id="someinput" class="someinput"> for gamepages? Would make a lot more things possible to do with the custom css.
Yay tables!
Yay tables!
author=kentona
[here's your damn square brackets you wiener [ [ [ [ ] ] ] ] [ ] Used with the new nobbcode tag I just added
[nobbcode][/nobbcode]
Hehe, Nobb Code.
it's perfectly safe if you control the filetype at the source
i'd suggest plumping for parsing the new <audio> tag but support is a little sketchy and it rules out MIDI
i'd suggest plumping for parsing the new <audio> tag but support is a little sketchy and it rules out MIDI
It seems that during the recent BB code edits an edit has been made which prevents me from indenting code, when I tried a couple of days ago:
Would look like this (except without the "."s):
I don't really want to have to put a "." at the start of each line. So if this could be changed back I would appreciate it greatly.
{
//this is indented
}Would look like this (except without the "."s):
.{
. //this is indented
.}I don't really want to have to put a "." at the start of each line. So if this could be changed back I would appreciate it greatly.
ok, I put it back to the way it was. Also, syntax highlighting is available!
[code ruby][/code]
produces
[code ruby][/code]
produces
class UsersController < ApplicationController . . . def update @user = User.find(params[:id]) if @user.update_attributes(params[:user]) flash[:success] = "Profile updated." redirect_to @user else @title = "Edit user" render 'edit' end end end
author=GameOverGames ProductionsOh, cool! What all languages are supported?<?php $test="test"; ?>
http://pygments.org/languages/


















