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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6024
  • 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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
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.
« Last Edit: January 03, 2009, 01:00:12 pm by jens »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6024
  • 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.