DEV Community

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

Posted on • Edited on

2

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay