Skip to content

Commit df5b965

Browse files
authored
Update README.md
add syntax highlighting
1 parent 157c0ea commit df5b965

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ The new file contains the following code patterns:
3535
* a constructor stub
3636
* space for specific methods
3737

38+
You need to edit the different files for updating user-specific information (author name, contact email, copyright notice...).
3839

3940
### Class pattern example
4041

4142
The following is the result of the creation of a new file called `SampleClass.m`, defining the class `SampleClass`, using the command `newClass('SampleClass')`:
4243

44+
```matlab
4345
classdef SampleClass < handle
4446
% One-line description here, please.
4547
%
@@ -78,6 +80,7 @@ The following is the result of the creation of a new file called `SampleClass.m`
7880
end % end methods
7981
8082
end % end classdef
83+
```
8184

8285

8386
## Creating new test
@@ -88,6 +91,7 @@ The newTest function can be used to create a new file containing a minimal imple
8891

8992
The following is the result of the command `newTest('foo')`:
9093

94+
```matlab
9195
function tests = test_foo
9296
% Test suite for the file foo.
9397
%
@@ -112,4 +116,5 @@ The following is the result of the command `newTest('foo')`:
112116
foo();
113117
value = 10;
114118
assertEqual(testCase, value, 10);
119+
```
115120

0 commit comments

Comments
 (0)