Back to Theia

README

packages/preview/README.md

1.71.01.3 KB
Original Source
<div align='center'> <h2>ECLIPSE THEIA - PREVIEW EXTENSION</h2> <hr /> </div>

Description

The @theia/preview extension adds the ability to display rendered previews of supported resources.
The extension comes with built-in support for rendering markdown files.

Contribute Custom Previews

To provide custom previews implement and bind the PreviewHandler interface, e.g.

typescript
@injectable
class MyPreviewHandler implements PreviewHandler {
  ...
}
// in container
bind(MyPreviewHandler).toSelf().inSingletonScope();
bind(PreviewHandler).toService(MyPreviewHandler);

Additional Information

License

Trademark

"Theia" is a trademark of the Eclipse Foundation https://www.eclipse.org/theia