Use of markdown for "writing style.md"

Former-commit-id: 66104d2442d7d911a877edab8504d8b1f02a9a98
This commit is contained in:
Tao Schreiner 2016-04-27 02:03:17 +02:00
parent 0d6727e746
commit 1c08b83244
1 changed files with 8 additions and 4 deletions

View File

@ -3,7 +3,7 @@ Examples writing-style:
Alphabetical order for everything and try to regroup each methods beginning with the same letter in the header Alphabetical order for everything and try to regroup each methods beginning with the same letter in the header
Class header: Class header:
```cpp
// Copyright (C) YEAR AUTHOR // Copyright (C) YEAR AUTHOR
// This file is part of the "Nazara Engine - MODULE module" // This file is part of the "Nazara Engine - MODULE module"
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
@ -40,9 +40,10 @@ class NAZARA_API NzClassName
}; };
#endif // NAZARA_FILENAME_HPP #endif // NAZARA_FILENAME_HPP
```
Class source: Class source:
```cpp
// Copyright (C) YEAR AUTHOR // Copyright (C) YEAR AUTHOR
// This file is part of the "Nazara Engine - MODULE module" // This file is part of the "Nazara Engine - MODULE module"
// For conditions of distribution and use, see copyright notice in Config.hpp // For conditions of distribution and use, see copyright notice in Config.hpp
@ -63,9 +64,10 @@ m_variableName(init)
NzClassName::PublicFunctions() NzClassName::PublicFunctions()
NzClassName::ProtectedFunctions() NzClassName::ProtectedFunctions()
NzClassName::PrivateFunctions() NzClassName::PrivateFunctions()
```
Structure: Structure:
```cpp
/!\ enum in Enums.hpp /!\ enum in Enums.hpp
enum nzEnum enum nzEnum
@ -75,10 +77,12 @@ enum nzEnum
nzEnum_Max = nzEnum_2 nzEnum_Max = nzEnum_2
}; };
```
Function: Function:
```cpp
FunctionName() FunctionName()
{ {
variableName = init; variableName = init;
} }
```