Skip to content

Commit 653d524

Browse files
XhmikosRdanmar
authored andcommitted
Update readme.md
Use Markdown syntax in the code places
1 parent 87abab3 commit 653d524

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ There are multiple compilation choices:
3737

3838
You can use the gui/gui.pro file to build the GUI.
3939

40-
```
40+
```shell
4141
cd gui
4242
qmake
4343
make
@@ -63,39 +63,39 @@ http://software-download.name/pcre-library-windows/
6363

6464
To build Cppcheck with rules (PCRE dependency):
6565

66-
```
66+
```shell
6767
make HAVE_RULES=yes
6868
```
6969

7070
To build Cppcheck without rules (no dependencies):
7171

72-
```
72+
```shell
7373
make
7474
```
7575

7676
### g++ (for experts)
7777

7878
If you just want to build Cppcheck without dependencies then you can use this command:
7979

80-
```
80+
```shell
8181
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
8282
```
8383

8484
If you want to use `--rule` and `--rule-file` then dependencies are needed:
8585

86-
```
86+
```shell
8787
g++ -o cppcheck -lpcre -DHAVE_RULES -Ilib -Iexternals cli/*.cpp lib/*.cpp externals/tinyxml/*.cpp
8888
```
8989

9090
### MinGW
9191

92-
```
92+
```shell
9393
make LDFLAGS=-lshlwapi
9494
```
9595

9696
### Cross compiling Win32 (CLI) version of Cppcheck in Linux
9797

98-
```
98+
```shell
9999
sudo apt-get install mingw32
100100
make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
101101
mv cppcheck cppcheck.exe

0 commit comments

Comments
 (0)