PH's formatting code can't cope with shebangs
PH's formatting code can't cope with shebangs
Author
Discussion

Pigeon

Original Poster:

18,535 posts

270 months

Saturday 13th October 2007
quotequote all

RacingPete

9,156 posts

228 months

Monday 15th October 2007
quotequote all
Shebangs: The crude shelters Civil War prisoners of war built to protect themselves from the sun and rain.

Not sure what that has to do with PH biggrin

I will add it to the list for the next round of improvements to the Forum parser


PetrolTed

34,464 posts

327 months

Monday 15th October 2007
quotequote all
Perhaps use the


code

tags to format code when posting?

Edited by PetrolTed on Monday 15th October 09:55

Zumbruk

7,848 posts

284 months

Monday 15th October 2007
quotequote all
[quote=PetrolTed]Perhaps use the


code

tags to format code when posting?

Doesn't work if the code contains curly braces....

RacingPete

9,156 posts

228 months

Monday 15th October 2007
quotequote all
PetrolTed said:
Perhaps use the

code
tags to format code when posting?
It does depend on where the new line is. If you add a new line after the quote=PetrolTed] tag it will work, but something we will look into improving.

PetrolTed

34,464 posts

327 months

Monday 15th October 2007
quotequote all
{{{

{ Curly brace test }

}}}

You're right. Have to say coding that parser has been one of the most difficult things I've done! My brain just can't cope with nested, recursing regular expression type things.

pdV6

16,442 posts

285 months

Monday 15th October 2007
quotequote all
I always thought curly braces weren't necessarily the best tags for code extracts!
Is there a technical reason why you can't simply use something like
[code]
...
[/code]

RacingPete

9,156 posts

228 months

Monday 15th October 2007
quotequote all
The formatting was implemented as part of a) Ted's further developments of the forums and b) to format the wiki function we added earlier this year.

This has not been an easy task as we have formatting that has been in place, and used by members for years, and then match this with standard wiki formatting. The standard from WikiCreole that was started in 2006 to standardise wiki formatting choose the curly braces as the choice for non formatted text See here Wikipedia seem to choose an alternative method, so we had to choose one method and stick to it. Though this can be reviewed in the future, but any alternative put in place will have to be backward compatable.

That is my understanding, Ted feel free to jump in if different.

pdV6

16,442 posts

285 months

Monday 15th October 2007
quotequote all
pdV6 said:
Is there a technical reason why you can't simply use something like
[code]
...
[/code]
RacingPete said:
yes
thumbup

PetrolTed

34,464 posts

327 months

Monday 15th October 2007
quotequote all
Yep, I did take that as my lead when designing it. I think we might be able to offer a [code] tag in addition though. I don't think there are any pitfalls in doing that.