Enable Preview for source files like html or css with IBM Docs Viewer

IBM Docs Viewer can open source files with syntax highlighting. This feature is default disabled, but sometimes very useful.

You need to enable it with IBM Connections Gatekeeper.

Be aware that most of Gatekeeper settings are not officially supported by IBM and can have side effects!

Open Gatekeeper with https://your-connections-fqhn/connections/config

Now search for FILEVIEWER_PREVIEW_TEXT and change the value to True.

Now when you open an html (or other text file) from IBM Connections Files it will open a preview and after a short flickering of the document the source is highlighted.

Without that setting you just see a message like “no preview available for this” and a download option:

Gatekeeper settings can be set in real-time, so no restart of Connections is needed to enable or disable this feature. I tested the preview with html, js and css, but I think nearly everything with mime-type text is possible.

Update 2018-06-15

You need the admin role of the Common Application to access the gatekeeper!

Leave a Reply

Your email address will not be published. Required fields are marked *

= 4 + 7

This site uses Akismet to reduce spam. Learn how your comment data is processed.