Please use wiki syntax

Added by Kirill Kornyakov 12 months ago

Dear all!

Every time you provide a code sample or a console output (build log, CMake report), please format it as a code. You can use the pre tag for this:

<pre>
 several lines
 of code
</pre>

It greatly helps to parse the listing visually. For more information you can check these short or long help pages. Redmine has a nice wiki syntax, so please use it extensively. BTW, if you found a non-formatted code sample, please fix the formatting, it will definitely improve your karma :)


Comments

Added by Alexander Shishkov 12 months ago

Also please use language specification for code highlighting. For example:

 1 #include <cv.h>
 2 #include <highgui.h>
 3
 4 using namespace cv;
 5
 6 int main( int argc, char** argv )
 7 {
 8   Mat image;
 9   image = imread( argv[1], 1 );
10
11   if( argc != 2 || !image.data )
12     {
13       printf( "No image data \n" );
14       return -1;
15     }
16
17   namedWindow( "Display Image", CV_WINDOW_AUTOSIZE );
18   imshow( "Display Image", image );
19   waitKey(0);
20
21  return 0;
22 }
<pre><code class="cpp">
#include <cv.h>
#include <highgui.h>

using namespace cv;

int main( int argc, char** argv )
{
....

  return 0;
}
</code>
</рre>