DEV Community

loading...
Cover image for View code snippets in fullscreen mode
Codever

View code snippets in fullscreen mode

Adrian Matei
Making bookmarking easier for devs with www.codever.land
・1 min read

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 

Discussion (0)