Posted on: 11/17/06 05:55am
By: ::Ben
Hello everybody,
Today I try to use [ CODE ] tag in
a story[*1] but it do nothing.
Does this tag is implement for stories and if yes how to use it?
Thanks for your reply.
::Ben
How to use [code] tag in stories?
Posted on: 11/17/06 06:38am
By: ::Ben
Seems to be easy to use
[ code ]A word[ /code ]
but it doesn't work on geeklog 1.4.0sr5 and $_CONF['skip_html_filter_for_root'] = 1
if story is post in plain old texte
::Ben
How to use [code] tag in stories?
Posted on: 11/17/06 06:44am
By: LWC
If you meant you can use it, but don't notice any difference, then you should know it just uses the HTML tag "pre", which does automatic line breaks, but disables wrapping. That's about it for what "pre" does.
See it in work[*2] .
To be able to use a real code format, I created a CSS class to which I called "code", put it in style.css and whenever I need it, I just:
Well, see it in work[*3] .
You can download this Geeklog class and its instructions from the download section in my site (it's one of the features of the "HTML 2 Text" script).
How to use [code] tag in stories?
Posted on: 11/17/06 07:29am
By: ::Ben
Thank you for the lesson and the images LWC.
It's a bug because on geeklog 1.4.0sr5 and $_CONF['skip_html_filter_for_root'] = 1 if story is post in plain old texte tags like [ link: ] or [ file: ] work very well.
::Ben
[Bug] How to use [code] tag in stories?
Posted on: 11/17/06 10:43am
By: LWC
Oh, guess your title should have been "How to use the code tag in plaintext stories?"...
But in any case "pre"'s "no wrapping" part causes a lot of troubles (while the advantage is simply automatic line breaks which you get in Geeklog's plaintext mode anyway!), so you may think twice about using "code" as long as it uses "pre".
As for why it doesn't work, I think it's because it contradicts the whole concept of the plaintext mode. The other tags you mentioned probably just paste plain URLs, which are turned into HTML links if the right choice is enabled in config.php (which is about the only HTML choice that covers plaintext mode too).
[Bug] How to use [code] tag in plaintext stories?
Posted on: 11/17/06 11:15am
By: ::Ben
LWC,
I made the mod in the title. English is not very easy for me... but I work everyday to make it easier.
As for why it doesn't work, I think it's because it contradicts the whole concept of the plaintext mode.
So it would be nice to fixe this minor bug.
::Ben
[Bug] How to use [code] tag in plaintext stories?
Posted on: 11/17/06 12:11pm
By: LWC
Again, that "bug" is a feature. They want plaintext to really be plaintext (links aside), otherwise what's the difference between that and HTML mode?
[Bug] How to use [code] tag in plaintext stories?
Posted on: 11/17/06 03:00pm
By: Dirk
As LWC said, that's not a bug. The CODE tag is there so that you can post HTML code while in HTML mode (for example). You don't need that when you're posting in text mode, since all the characters are posted "as is" there anyway.
bye, Dirk
[Fixed] How to use [code] tag in plaintext stories?
Posted on: 11/17/06 04:57pm
By: ::Ben
Ok thank you misters.
I was looking for a way to show code different in the story when posting in plain text. Not the good way...
::Ben