MINOR BBCODE UPDATES

Posts

Pages: first 12 next last
I muddled through the code and added support for:

[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]
...results in...
hellohellohello
worldworldworld
hellohellohello
worldworldworld

now
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.
halibabica
RMN's Official Reviewmonger
16948
Not gonna lie, I saw {td} and {tr} as {tl}, {dr} tags. o.o
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.
<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.
kentona:

The author of the postmarkup rendering engine replied to your post, I implemented his recommendation and it worked!
For a second I thought I was reading House of Leaves again.
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]
whisper whisper HTML5 embed whisper whisper
author=geodude
whisper whisper HTML5 embed whisper whisper
??
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!
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
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:
{

//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

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
<?php
  $test="test";
?>


Oh, cool! What all languages are supported?
author=GameOverGames Productions
<?php
  $test="test";
?>
Oh, cool! What all languages are supported?


http://pygments.org/languages/
Now that is awesome, thanks very much ankylo.
Pages: first 12 next last