Explain

Explain code on any web page without leaving it.

Reading someone else's code on a web page usually means copying it into another tool to ask what it does. Highlight the snippet instead, and TrigVia's Explain action describes it in plain language, right where you found it.

How it works

01

Highlight the snippet

A function, a command, an error message or a configuration block.

02

Choose Explain

TrigVia suggests it when the selection looks technical.

03

Read it in place

The explanation appears on the page, so you can keep reading the surrounding docs.

Where it helps

Documentation pages, Q&A answers, blog tutorials, pull requests and error logs. Anywhere code is shown as selectable text in Chrome.

Explain is a reading aid. Always test code yourself before you rely on it.

A worked example

You find a shell command in a tutorial: a long line of flags and pipes. Select it, run Explain, and you get what each part does and what the whole line achieves, next to the tutorial you are following.

The same works for a regular expression in an answer, a block of configuration, or a stack trace in an issue.

Using explanations safely

Explanations describe what code appears to do. They do not run it and they can be wrong, especially on unusual libraries. Run commands in a safe environment first, and be careful with anything that deletes or changes data.

Never select secrets such as passwords or API keys. The selected text is sent to produce the result.

Questions

Short answers.

Stop copying text into other tabs. 

Install TrigVia, highlight something, and see what it suggests.