Allan Odgaard <throw-away-1@...> writes:
On 17. Jan 2007, at 18:04, Zeitler Andreas wrote:
But in the meanwhile i have some problems here:
- There are to main Forum Softwares out there which the people
(and me) use most. The one is vBulletin and the other is phpBB.
[...]
How do i get rid of this problem? Or do i have to expand the Bulletin Board Language for this to work?
Do you use different file extensions for the two cases? If so, it would be easiest to create two grammars, one for each, that have different root scopes, so you can scope snippets and commands differently.
They don't really have file extensions. These are ad-hoc, poorly defined, simplistic markup languages that vary extensively from one forum to another. I made the BBCode bundle to match the syntax of the forums I have used most. Unfortunately, just about every forum has at least slightly different syntax.
This is basically because BBCode sucks. Alas. I wish everyone would just use markdown for these types of things. Maybe people will learn from the example of sites like reddit.
That is, best to make them derived from the same root, and let them include the same base grammar (for maximum reuse).
I think this is probably the best bet. Because we should really scope as invalid the parts that won't work on a particular version of the software, so that users don't enter broken markup.
-Jacob