Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Welcome to Qlik Community! Check out our new navigation! FIND OUT MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
IAMDV
Luminary Alumni
Luminary Alumni

Change QlikSense Script Fonts?

Hello Qlikers,

Very quick question - Is there a way to change the QlikSense script fonts? I really like to keep my code clean and nicely formatted. I'm not a fan of Arial or Courier Sans fonts and it seems like default is Courier Sans.

Thanks,

DV

1 Solution

Accepted Solutions
reddy-s
Master II
Master II

I am glad it was useful.

And this is the exact location of the file on the server:

C:\Program Files\Qlik\Sense\Client\assets\scripteditor\scripteditor.css

But you might have to do it every time you upgrade the server!

Thanks,

Sangram

View solution in original post

8 Replies
reddy-s
Master II
Master II

Hi Deepak,

The default font-family for script is Courier, monospace in qliksense. This font family property belongs to a css class "CodeMirror" . You will be able to change the font if you modify a css file "scripteditor.css" in the following location :

../resources/assets/scripteditor/ on the server.

Thanks,

Sangram.

IAMDV
Luminary Alumni
Luminary Alumni
Author

Cheers mate. That is exactly what I was looking for! I will give a shot soon and revet back to you. Thank you!

DV

reddy-s
Master II
Master II

I am glad it was useful.

And this is the exact location of the file on the server:

C:\Program Files\Qlik\Sense\Client\assets\scripteditor\scripteditor.css

But you might have to do it every time you upgrade the server!

Thanks,

Sangram

IAMDV
Luminary Alumni
Luminary Alumni
Author

Thanks mate. Here is what you need to do:

1. Find the "scripteditor.css" under ..\..\Sense\Client\assets\scripteditor\scripteditor.css path

2. Make a copy of scripteditor.css (Just in case if we mess up something!)

3. Open scripteditor.css using IDE (I'm using Sublime). Easier to read in IDE compared to Notepad (Personal choice though)

4. Go to line number: 9851 and you will see ".CodeMirror" class

5. Change the default font to whatever you wanted

6. Save and reload the Sense desktop by pressing F5/Refreshing

Hope this helps!

Cheers,

DV

reddy-s
Master II
Master II

Great! Thank you for sharing this Deepak. I am sure this will be very useful for everyone.

Thanks,

Sangram

balexbyrd
Contributor III
Contributor III

Hi Deepak, step #6 refers to Qlik Sense Desktop. This file and folder location is not available in Qlik Sense Desktop 3.2 as you were likely talking about QS Server/Enterprise


Alternatively, I've been trying to modify .CodeMirror in QS Desktop via a jQuery extension and separate CSS files without any luck. Any font possibilities for 3.2 Desktop please let me know! I'm more interested in the color and not changing the size. Thanks!

ArnadoSandoval
Specialist II
Specialist II

Hi Alex,

We are running Qlik Sense Desktop 3.1 SR4, the file is located at:

C:\Users\<user name>\AppData\Local\Programs\Qlik\Sense\Client\assets\scripteditor

Note:

.codeMirror moved to a different line, my local copy has it on line 3448

Good Luck

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
dberkesacn
Partner - Creator III
Partner - Creator III

and at the frontend .. .:

C:\Users\userid\AppData\Local\Programs\Qlik\Sense\Client\assets\client

Courier, monospace ==> Ubuntu Light, monospace