Skip to content

Commit 77a41e2

Browse files
committed
Merge pull request #976 from Gama11/patch-4
Contributing.md highlighting and fixes
2 parents 5c15646 + a74fb1a commit 77a41e2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ If you want to add your plugin, theme or extension to AppMan, you need to do a p
1010

1111
##### Use spaces instead of tabs with a width of 4
1212

13-
```
13+
```c#
1414
public bool IsMember()
1515
{
16-
if (this.value > 2))
17-
{
18-
return false;
19-
}
16+
if (this.value > 2)
17+
{
18+
return false;
19+
}
2020
else return true;
2121
}
2222
```
2323

2424
##### Naming should be in English and clear
2525

26-
```
26+
```c#
2727
private int memberProperty = 0;
2828
```
2929

3030
##### Use camelCase for private members and uppercase for public properties, methods and types:
3131

32-
```
32+
```c#
3333
private int memberProperty = 0;
3434

3535
public string MemberName = "MemberName";
@@ -42,7 +42,7 @@ public bool IsMember()
4242

4343
##### Use types without explicit path:
4444

45-
```
45+
```c#
4646
private void OnFormActivate(object sender, /*System.*/EventArgs e)
4747
{
4848
// Do something...
@@ -51,7 +51,7 @@ private void OnFormActivate(object sender, /*System.*/EventArgs e)
5151

5252
##### Do not use extensive extra empty lines and keep the code clean, not like:
5353

54-
```
54+
```c#
5555
// Comment...
5656
private int MemberMethod(int value)
5757
{
@@ -88,7 +88,7 @@ private int MemberMethod(int value)
8888

8989
##### Use brackets and parenthesis for easier readability:
9090

91-
```
91+
```c#
9292
if ((val1 > val2) && (val1 > val3))
9393
{
9494
if (val2 > val3)
@@ -100,7 +100,7 @@ if ((val1 > val2) && (val1 > val3))
100100

101101
##### Do not nest expressions without brackets:
102102

103-
```
103+
```c#
104104
if (val1 > val2 && val1 > val3)
105105

106106
if (val2 > val3)
@@ -111,7 +111,7 @@ if (val1 > val2 && val1 > val3)
111111

112112
##### Use can use one liners to shorten the code:
113113

114-
```
114+
```c#
115115
if (val1 > val2 && val1 > val3)
116116
{
117117
if (val2 > val3) doThing();
@@ -120,7 +120,7 @@ if (val1 > val2 && val1 > val3)
120120

121121
##### Use explicit types:
122122

123-
```
123+
```c#
124124
int myValue = 0;
125125
Point[] myPoints = new Point[]
126126
{
@@ -131,7 +131,7 @@ Point[] myPoints = new Point[]
131131

132132
##### Code example:
133133

134-
```
134+
```c#
135135
import System;
136136

137137
namespace MyNameSpace
@@ -166,7 +166,7 @@ namespace MyNameSpace
166166
public void MemberMethod(int value)
167167
{
168168
int temp = CONSTANT;
169-
if (value > 2))
169+
if (value > 2)
170170
{
171171
this.memberProperty2 = temp;
172172
this.memberProperty3 = temp;

0 commit comments

Comments
 (0)