Thursday, 15. December 2005, 17:37:59
Upgrade: Real "Code" tag needed badly...
There is [ code ] tag here (both forums and blogs)... and it looks nice (css and stuff) but... how functional is it?!If you have any experience with forum, you know that code is used when you want to post certain content what you either:
1. Can't post without that tag such as BBcode "source"
2. Want to preserve full content of some code...
Some have highliting for php/perl/c/java, some don't but the main purpose is making users possible to post content that won't be parsed...
So... I for example need to write a tutorial for begginers and show im how to make fancy text effects for their blog... Something I would like to document and illustrate to them so they can easily copy paste it.. but here.. code parses bb code...
Example:
Lorem ipsum dolor
Now code:
[SIZE=4][FONT=Georgia][COLOR=royalblue]Lorem[/COLOR][COLOR=firebrick] ipsum [/COLOR][COLOR=green]dolor[/COLOR][/FONT][/SIZE]
And it should show (without blanks):
[ SIZE=4 ][ FONT=Georgia ][ COLOR=royalblue ]Lorem[ /COLOR ][ COLOR=firebrick ] ipsum [ /COLOR ][ COLOR=green ]dolor[ /COLOR ][ /FONT ][ /SIZE ]
The good thing about current code tag is the fact that you can use colors to highlight something manually... for example:
Example 3:
[COLOR=firebrick][B]#subtitle[/B][/COLOR] {
[B]margin:[/B]top;
[B]width:[/B]100%;
[B]overflow:[/B]hidden;
[B]font-size:[/B][COLOR=purple]20px[/COLOR];
[B]font-family:[/B]'[COLOR=purple]Comic Sans MS[/COLOR]',arial,helvetica,sans-serif;
[b]color[/b]:[COLOR=purple]#FFFFFF[/COLOR];
}
So.. current code should stay..but maybe we should have some other tag for posting html / bb sources..... [noparse] or something like that... anyhow... it should be added
Friday, 16. December 2005, 00:46:41
Friday, 24. March 2006, 15:52:58
Friday, 24. March 2006, 15:59:52
Monday, 27. March 2006, 08:12:05
If code is code as you say than it should have been like that from the beggining.. but doesn't matter...
Tuesday, 28. March 2006, 12:21:33
Tuesday, 28. March 2006, 14:17:15 (edited)
Tuesday, 28. March 2006, 14:20:37
Originally posted by olekasper:
a[i] = "string" + i++;
Wednesday, 29. March 2006, 09:29:23
Edit... replace
[CODE]
with:
[QUOTE][FONT=courier new]
and
[/ CODE]
with:
[/FONT][/QUOTE]
Example: http://my.opera.com/WhyOpera/blog/show.dml/63665
Wednesday, 29. March 2006, 10:39:09
Originally posted by SerbianFighter:
Quick if you don't have manyWorkaround - quick fix for all those who used BB tags for coloring code elements:
That works fine in most layouts, but in a few it looks weird (mine, for example).
Using the html pre tag seems to work well, but it looks like it just the opening tag works, not the closing one. That way, all the post from that point gets in the pre.
An hr before and another after makes a nice effect, though
Wednesday, 29. March 2006, 13:56:14
Originally posted by euricomatos:
Quick if you don't have many
And if you know how to find them. I've searched for [b][/b] combined with my username but that didn't give any results. I guess I will have to incidentally fix old posts when I accidentally see them.
Wednesday, 29. March 2006, 14:06:42
Originally posted by scipio:
b as in bold?!?!? Don't you mean 'code'? Or are you trying to restrict the search even more?I've searched for [b][/b] combined with my username but that didn't give any results.
Try a search with \[code\] (with the escape character) and it should work fine
edit: yep, it does. more than 60 results for me. I don't want to imagine yours
Wednesday, 29. March 2006, 14:31:40
Forums » Opera Community » Opera Community and other Opera services » Opera's Web sites: Feedback, questions and discussions
