Hello,
i want to post some code examples in my blog and use the [code] tag. Now the example is latex source and each \t< more text> get's expanded to a tab + <more text>. I tried \\ but it get's expanded to a \ and the following 't' still expands to the tab.
How can i avoid this and post code examples which contain \t<some text>?
Thanks
BBcode and tab expanding
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: BBcode and tab expanding
I cannot comment on the bbcode because I do not use it on any s9y site. If you are willing to use html <code> or <pre>, here is some pretty nice css which is, in fact, used by the s9y homepage and blog:
Code: Select all
pre {
/* the following is not fully WC3 css3 compliant due to browser specific rules, but works well in all browsers tested */
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
code, pre {
background: #f6f6f6;
border: 2px solid #bbbbbb;
color: #278350;
font-family:"Courier New",Courier,monospace;
padding: 10px;
}
code {
display: block;
}
code pre,
pre code {
border:0;
padding:0;
}
=Don=
Re: BBcode and tab expanding
So, nobody ever posted Latex sourcecode in his blog?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: BBcode and tab expanding
Hi!
You should try the dsp_syntaxhighlight or geshi event plugins, those allow for custom source markups?
HTH,
Garvin
You should try the dsp_syntaxhighlight or geshi event plugins, those allow for custom source markups?
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: BBcode and tab expanding
dsp_syntaxhighlight is not an option because it requires Javascript.
But Geshi did the job.
Thank you
But Geshi did the job.
Thank you