Author Topic: I suggest that wiki could add some "code tags"  (Read 4776 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
I suggest that wiki could add some "code tags"
« on: January 03, 2009, 10:35:33 am »
I want to add some code to the wiki page, but I found that it is not support the code style like:
Quote
<source lang="cpp">
int main()
{
   readdir_sequence dir( "/", readdir_sequence::directories );

   std::copy( dir.begin(), dir.end()
            , std::ostream_iterator< std::string >( std::cout, "\n" ));
}
</source>


So, it is more convenient to add this functionality support like wikipedia does. Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: I suggest that wiki could add some "code tags"
« Reply #1 on: January 03, 2009, 12:00:57 pm »
You are running in the wrong door. It is a sub-forum to discuss Development of code::blocks. Try other sub-forums instead. :D

I think writing a wiki-article has nothing to do with developping Code::Blocks itself.

I move the topic to General.[/s]

Sorry, didn't read the forums headline correctly, moved back.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: I suggest that wiki could add some "code tags"
« Reply #2 on: January 09, 2009, 08:22:08 am »
I'm not sure how to do that, but some guru can do this by just adding a patch to the "wiki media server" :D.
Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.