News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

I suggest that wiki could add some "code tags"

Started by ollydbg, January 03, 2009, 10:35:33 AM

Previous topic - Next topic

ollydbg

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.

Jenna

#1
Quote from: ollydbg on January 03, 2009, 10:14:23 AM
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.

ollydbg

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.