Is it true that code tags now "know" what forum they're in? Because I was only posting one line of code so I didn't use the =Java tag in the Java forum, yet it got posted with the Java code tags instead of the regular code tags. If that is true, it's definitely cool because now new members won't be able to post with the other tags. But maybe I'm just going crazy.
because now new members won't be able to post with the other tags
Yes however I use to use code tags with no syntax a lot for non-code text and now old posts like the many I've posted are highlighted in code when they are just important text. There are ways around it but as good as this new feature is for new comers, I kinda miss the short-cut the displaying monospaced text just by using code tags. O'well, I guess some things do change and perhaps for the better.
Yes however I use to use code tags with no syntax a lot for non-code text and now old posts like the many I've posted are highlighted in code when they are just important text. There are ways around it but as good as this new feature is for new comers, I kinda miss the short-cut the displaying monospaced text just by using code tags. O'well, I guess some things do change and perhaps for the better.
That's the main problem, I think. I'm not crazy about the syntax-defaulting the way it is now, but since I know about it, I can get around it when I want to. However, the code syntax defaulting has been retroactive, so you have all sorts of stuff like this in the C++ forum:
Now is the timefor all good men to come to the aid of their country.
It was intended as a text input file and is now flagged as "C++ Syntax" and "time for" is highlighted as keywords. Not the end of the world, but the result is a lot of high quality posts now looking much less high quality IMO. I don't know anything about the parsing mechanism, but I would imagine that it could check for a post-date and if it were pre-change, don't use the language-assumption.
>It preserves your formatting and uses a terminal font:
...but is still not enough since the original CODE tags didn't add line numbers. This auto-line numbering feature kinda breaks posts in which code tags were used for the sole purpose of preserving formatting and using a terminal font *without* the line numbers. E.g.
As DaniWeb grows and evolves over the course of years, things are going to change which (at leat the intention is) to be for the better for the majority of our vast traffic and memberbase. This is an inevitable.
I strive to be as absolutely backwards compatible as possible, but backwards compatibility can only go so far. The new behaviour of the code tags is 100% backwards compatible as long as they were used for their intended purpose which is to display code. (i.e. *many* extra lengths were taken to preserve the ability for the system to be smart enough to not automatically syntax highlight when bbcode is used to highlight code manually).
However, using code tags for something outside of code to achieve a visual effect as a result of the current way code tags happen to be handled cannot ever be guaranteed in the future. It is almost like exploiting the current system to do something it isn't designed to do ... it cannot be guaranteed in future versions. The same goes for quote tags or any other DaniWeb feature. It is not recommended to use quote tags for non-quotes because there are many undesired side effects when using something not for its intended purpose (for example, did you know that quote tags use the html blockquote tag which tell Google that the content within them is not unique and not to spider it?)
>However, using code tags for something outside of code to achieve
>a visual effect as a result of the current way code tags happen to be
>handled cannot ever be guaranteed in the future.
Translation: "Bite me. You didn't use tags for the narrow purpose they were designed, so you don't have a right to complain when I change their behavior".
That's all well and good if you're a cruel dictator, but it's not generally a good idea to make your members angry. Daniweb isn't the only tech forum out there, after all, and the ones most likely to be annoyed by this change are the ones who provide you with the most value.
>It is almost like exploiting the current system to do something it isn't designed to do
IIRC, code and quote tags were used to "exploit" the system because there wasn't any other way to achieve anything remotely like the presentation we wanted. Perhaps instead of giving us the proverbial finger, you could incorporate something into the system so we don't need to exploit it?
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.