Syntax is not highlighted with highlight.js when custom domain is mapped to a Azure Web app - highlight.js

I am using highlight JS for syntax highlighting. When published in the Azure webapp, it is working fine and color coding is appropriately displaying as shown below.
enter image description here
But when the same web app is mapped to a custom domain (created in cloudflare), highlight.js is not applied and the syntax is not highligting as shown below.
enter image description here
Note: In the above image text and background are same and text is not visible. Can someone help me out why the highlight.js is not working when the html page is accessed via the custom domain URL?

Related

How to highlight the asset on Autodesk forge viewer

Currently we are working to integrate the Autodesk forge Viewer to display the REVIT file in our web application.
Also we are getting the asset details in a json format by using Model Derivative API.
Then extract the asset details from JSON file and store it in the database. Then we bind the asset details in tree view.
On clicking the particular asset in tree view - the selected asset should highlight and zoom in forge viewer.
Kindly share any c# sample code to highlight the selected asset (in custom tree view) in forge viewer.
you can use the below code to highlight the asset
pass the dbID:
this.viewer.fitToView(dbID);
this.viewer.isolate(dbID);

Render personal tabs dynamically in Ms-Teams using custom application

I have created custom application with static tabs defined in manifest file and it is working fine.
Now, our requirement is that we need to render static (personal) tabs dynamically according to provided Site URL by customer.
For ex. When application installed in teams user will get screen where he will asked for Site URL (API) in textbox and submit it. This will internally check data and give response with tab name, tab URLs and other details then I need to render this tabs dynamically in teams.
enter image description here
Please provide solution for this how I can achieve this ?
It is not possible to add static tabs dynamically. Static or personal tabs are always added through the app manifest and are common to all the users using the app. If you want to configure what tabs to show you can try using a channel tab.
As Gousia said, you can't set the contents of the tab dynamically, and you can't add/remove personal tabs programmatically, but what you could try is having your "tab" be just an iframe host, with width/height basically set to 100%, and then dymically loading the content of the iframe

localhost API image not showing on browser

As i'm developing a Web API for angular application i have saved the image in my Web Api project and the project folder structure is below.
Now as i'm trying to get access for the image via browser it doesn't show the image here is a snapshot for it below.
I have tried calling the HTML page of angular like this below.
<img src="http://localhost:4000/Uploads/Profile/057f4ed8-5b52-4ba0-b3ec-ae3b4f4e9baa.jpg" class="img-fluid">
It doesn't work how can i access these images in my other project and also the Web API project is running.
To Enable Static Content go to Window Features then iis

Maintaining image preview in Netlify CMS

When uploading an image in Netlify CMS, I get a preview image, which however disappears right after a refresh. The image I attached shows the source attribute the preview element uses - it looks like the logic here assumes that the image is already deployed to the same domain (which in turn assumes that the site the CMS manages lives on the same domain as the CMS interface itself). Is there a way to change the base URL just for the preview, e.g. to some kind of https://rawgit/...-like URL. I am looking for a setting that affects only the preview widget behavior and nothing else (where the image is saved, what URL path it adds in the post frontmatter etc).
Thanks in advance for any pointers!

Facebook Like Button on a web page produces an image not associated with the web page

I set up the index page of my new website with a Facebook like button. Everything functions properly, except that the instead of the image (the only image invoked on the web page) that I specified with - meta property="og:image" content= - a completely unknown image is used. It the image is of a narrow horizontal bar with some white letters.
See if Facebook can tell you what's wrong via their lint tool.
Cheers

Resources