DEV Community

Cover image for View code snippets in fullscreen mode
Adrian Matei for Codever

Posted on • Updated on

View code snippets in fullscreen mode

You can now view the code snippets in fullscreen mode if they are too long or some of the lines too wide:

Enter full screen mode from snippet

For the implementation in frontend with Angular I used screenfull.js1, which is a simple wrapper for cross-browser usage of the JavaScript Fullscreen API2.

👉 See How to display an element in full screen in Angular with screenfull.js for complete details about the implementation


👉 The whole source code of the project is available on Github


  1. https://github.com/sindresorhus/screenfull.js/ ↩

  2. https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API ↩

Top comments (0)