
.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cheers mate. That is exactly what I was looking for! I will give a shot soon and revet back to you. Thank you!
DV


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great! Thank you for sharing this Deepak. I am sure this will be very useful for everyone.
Thanks,
Sangram

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
A journey of a thousand miles begins with a single step.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
and at the frontend .. .:
C:\Users\userid\AppData\Local\Programs\Qlik\Sense\Client\assets\client
Courier, monospace ==> Ubuntu Light, monospace
