Snippet marker indentation test

This page tests snippet marker indentation handling. QDoc automatically adjusts indentation to preserve the natural code structure regardless of marker placement.

Over-indented marker example

This snippet has markers that are more indented than the code. QDoc automatically uses the minimum content indentation:

int x = 5;
int y = 10;

Correctly indented marker example

This snippet has properly aligned markers:

int a = 1;
int b = 2;

Under-indented marker example

This snippet has markers less indented than the code. QDoc preserves the marker indentation level:

    int c = 3;
    int d = 4;

Mixed indentation example

This snippet has mixed indentation levels. QDoc uses the minimum content indentation:

int e = 1;
    int f = 2;
int g = 3;