Sentry Maven Skin 6.4.01
-
Home
- User Documentation Features 14
Code Syntax Highlighting
Fenced code blocks will be syntax-highlighted using PrismJS[1]. The language of the code block must be specified as in the below example:
```java
System.out.println("Hello, World!");
```
Each block of code can be easily copied to the system's clipboard with a dedicated [Copy]
button.
Supported languages
Command lines (Linux)
```bash
echo $HOME > /tmp/my-home.txt
```
Command lines (Windows)
```batch
echo %USERNAME% > username.txt
```
Command lines (with output)
```shell-session
$ ls -l
test: Not found
```
CSS
```css
body.my-theme > a {
color: #012345;
}
```
Docker file
```docker
FROM ubuntu:22.04
COPY . /app
RUN make /app
CMD python /app/app.py
```
HTML
```html
<a href="https://onehome.org" title="Moving">OneHome</a>
```
JavaScript
```js
function printPage() {
window.print();
}
```
JSON
```json
{
"myArray": [3, 1, 4, 1, 5, 2, 9],
"other": null
}
```
Markdown
```md
This is a **bold** move, [do it!](https://sentrysoftware.org).
```
PowerShell
```ps
Get-CimInstance -ClassName Win32_OperatingSystem | Invoke-CimMethod -MethodName Shutdown
```
PSL
```psl
print("home: ".get("/patrolHome")."\n");
```
Regular Expressions
```regex
[Bb]rainf\*\*k
```
SQL
```sql
SELECT value FROM table WHERE name="test" -- Testing
```
xml
```xml
<item name="test">42</item> <!-- Test -->
```
YAML
```yaml
myArray: [3, 1, 4, 1, 5, 9, 2]
other:
main: null # This is null
rest: "nothing"
```
Note:
Syntax highlighting for fenced code blocks is available only when using version 3.10 (and later) of maven-site-plugin.
Search Results for {{siteSearch | truncate:'50'}}
{{resultArray.length}}
No results.