Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Add language specifying for markdown block #67

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ reference.
supported option. Each entry specifies the option supported,
whether the option is supported locally or remotely.

```
```cpp
struct telnet_telopt_t {
short telopt;
unsigned char us;
Expand All @@ -79,7 +79,7 @@ struct telnet_telopt_t {
entry, which is simply an entry with telopt set to -1. For
example:

```
```cpp
static const telnet_telopt_t my_telopts[] = {
{ TELNET_TELOPT_ECHO, TELNET_WILL, TELNET_DONT },
{ TELNET_TELOPT_TTYPE, TELNET_WILL, TELNET_DONT },
Expand Down Expand Up @@ -271,7 +271,7 @@ static const telnet_telopt_t my_telopts[] = {
telnet_event_t data type. Please see the libtelnet manual pages or
HTML document for a complete reference.

```
```cpp
union telnet_event_t {
enum telnet_event_type_t type;

Expand Down Expand Up @@ -321,7 +321,7 @@ union telnet_event_t {
Here is an example event handler implementation which includes
handlers for several important events.

```
```cpp
void my_event_handler(telnet_t *telnet, telnet_event_t *ev,
void *user_data) {
struct user_info *user = (struct user_info *)user_data;
Expand Down Expand Up @@ -492,7 +492,7 @@ void my_event_handler(telnet_t *telnet, telnet_event_t *ev,
in the event->environ.values field. This is an array of
structures with the following format:

```
```cpp
struct telnet_environ_t {
unsigned char type;
const char *var;
Expand Down Expand Up @@ -686,7 +686,7 @@ address, the server's port number, and the port number that
telnet-proxy should listen on. For example, to connect to the server
on mud.example.com port 7800 and to listen on port 5000, run:

```
```bash
$ ./build/util/telnet-proxy mud.example.com 7800 5000
```

Expand Down