Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown code block color highlighting #22

Closed
vysecurity opened this issue May 12, 2023 · 5 comments
Closed

Markdown code block color highlighting #22

vysecurity opened this issue May 12, 2023 · 5 comments

Comments

@vysecurity
Copy link

Hi there,

Any way to highlight certain parts of a code block in markdown with a different color? For example:

GET /?request=abc HTTP1/.1
XXXXX

I want to highlight request=abc. I tried things like asterisk, and backticks.

It helps to be able to point out the payload in a request.

@MWedl
Copy link
Contributor

MWedl commented May 12, 2023

Yes. See https://docs.sysreptor.com/reporting/markdown-features/#code-blocks

```http highlight-manual
POST /login.php HTTP/1.1
Host: sqli.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 33

§§username='or'1'='1§§&password=dummy
```

@MWedl MWedl closed this as completed May 12, 2023
@vysecurity
Copy link
Author

I read the docs, thanks.

@vysecurity
Copy link
Author

I just realised, how can I specify the highlight-manual color specifications so it highlights it in a different color in css?

I tried:

#highlight-manual {
    color: #333;
}

but it had failed.

@MWedl
Copy link
Contributor

MWedl commented May 12, 2023

You can add CSS rules for the HTML <mark> tag

mark {
    background-color: red;
}

@vysecurity
Copy link
Author

Works wonders! Thankyou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants