diff options
author | Gianluca Recchia <gianluca.recchia97@gmail.com> | 2019-04-13 17:31:43 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2019-04-13 17:31:43 +0300 |
commit | c3ae446fd998b54f2ee6b12c4b0f7ff12761d143 (patch) | |
tree | c3e4ccfd2f7e3b2c4f05e956081a4ec383a1d54d /.github | |
parent | d5d51d668fe6926ca276580b78746c10fa68add1 (diff) |
Fix syntax highlighting in CONTRIBUTING.md (#2997)
Code snippets are now marked as cpp so that GitHub highlights them
correctly.
Diffstat (limited to '.github')
-rw-r--r-- | .github/CONTRIBUTING.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 89c3bb2eb..6db91c280 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -121,11 +121,11 @@ For names made of only one word, the first letter should be lowercase. For names made of multiple concatenated words, the first letter of the whole is lowercase, and the first letter of each subsequent word is capitalized. #### Indention -For **C++ files** (*.cpp .h*): 4 spaces +For **C++ files** (*.cpp .h*): 4 spaces For **Qt-UI files** (*.ui*): 2 spaces #### Includes -```c +```cpp // Class includes #include "MyWidget.h" #include "ui_MyWidget.h" @@ -140,7 +140,7 @@ For **Qt-UI files** (*.ui*): 2 spaces ``` #### Classes -```c +```cpp // Note: order is important, stay organized! class MyWidget : public QWidget { @@ -174,13 +174,13 @@ MyWidget::MyWidget(QWidget* parent) ``` #### Pointers / References -```c +```cpp int* count; const QString& string; ``` #### Braces -```c +```cpp if (condition) { doSomething(); } else { @@ -194,7 +194,7 @@ void ExampleClass::exampleFunction() ``` #### Switch statement -```c +```cpp // Note: avoid declaring variables in a switch statement switch (a) { case 1: |