Automatically syntax highlights QlikView script on any WordPress page or post.
Author: | Matt Fryer (profile at wordpress.org) |
WordPress version required: | 4.0 |
WordPress version tested: | 4.9.4 |
Plugin version: | 2.0 |
Added to WordPress repository: | 15-10-2014 |
Last updated: | 14-02-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | http://www.qlikviewaddict.com/p/qlikview-word... |
Total downloads: | 1 919 |
Active installs: | 20+ |
Click to start download |
Screenshots
An example section of QlikView script showing the syntax highlighting provided by this plugin.
Includes a support for adding shortcode via the WordPress visual post/page editor.
Installation Instructions
There are 3 possible methods to install this plugin. We would highly recommend using method 1 as this is the easiest and will give notification of future updates.
Method 1
- Login to your WordPress Admin Portal.
- On the left hand navigation panel, select “Plugins”.
- Towards the top of the plugins list, click the “Add New” button.
- In the search box towards the right hand side, type “Qlik” and hit enter to search.
- The Qlik for WordPress plugin is currently one of only two results returned. Click the “Install Now” button next to it.
- WordPress will then download and install the plugin for you. Once complete, click the “Activate” button to complete the installation.
- The plugin is now installed and the shortcode is ready to use.
Method 2
- Download the plugin zip file by clicking the link above.
- Login to your WordPress Admin Portal.
- On the left hand navigation panel, select “Plugins”.
- Towards the top of the plugins list, click the “Add New” button. Note, if you have a previous version of this plugin installed it must be removed before proceeding.
- Again, towards the top, click the “Upload Plugin” button.
- Click the “Browse” button and navigate to the location where you saved the plugin zip file and select it.
- Click the “Install Now” button
- Once back on the plugins page, activate the “Qlik for WordPress” plugin.
Method 3
- Download the plugin zip file by clicking the link above.
- Extract the contents of the zip file to a folder on your computer.
- Upload the entire directory “/qlik-highlight/” and its contents from the .zip file to the “/wp-content/plugins/” directory of your Wordpess site. If a previous version of this plugin has been installed, overwrite the entire folder.
- Login to your WordPress Admin Portal.
- On the left hand navigation panel, select “Plugins”.
- Activate the “Qlik for WordPress” plugin.
Is the syntax highlighting perfect?
The syntax highlighting is an approximation of the default highlighting within the Qlik Edit Script dialogs. It is not a perfect replication.
Does it check if my code is valid?
This plugin is not designed to validate your Qlik code. Just because it is highlighted it doesn’t mean your code is valid. For example, the highlighting engine has no way of knowing if field names within an expression/measure are actually contained within a QlikView or Qlik Sense data model.
Can it highlight other languages?
As well as Qlik script and expressions/measures, it can currently highlight a handful of other languages that are associated with Qlik products. These currently include SQL, VBScript and JavaScript. If you think there is a need for it to support another language, please let me know.
Can I use it with another highlighting plugin?
The plugin has not been tested with any other highlighting plugins (syntax or otherwise) and so it cannot be guaranteed to work alongside them, especially those also based on highlight.js.
How does it work?
It uses a custom build of highlight.js to provide the highlighting. The highlighting is applied client-side using javascript when the page is loaded in the browser.
Are the icons identical to Qlik?
All Qlik Sense icons are generated using the LeonardoUI vector based font that Qlik Sense uses and so are identical to those seen in the Qlik Sense Hub and Management Console. QlikView icons are approximate representations of the icons found in QlikView desktop and web UI.
2.0
- Added Qlik Sense connection string support
- Added the missing keywords DERIVE and FLUSHLOG
- Added support for DIRECT QUERY statements
- Fixed issue with REM comments not supporting whitespace before them
- Fixed issue with clicking cancel on shortcode prompts results in shortcode still being entered
- Fixed issue with variable declarations containing a full stop (AKA period) not highlighting correctly
- Fixed issue with backslash incorrectly operating as an escape character in strings
- Other minor highlighting improvements
- Significant speed improvements
- Added custom vector font to allow insertion of some Qlik icons
- Added the LUIicons vector font from LeonardoUI to allow insertion of all Qlik Sense UI icons
- Added optional extra line numbers to code block (should be used with caution as can prevent correct highlighting of code than spans multiple lines eg. /* */ block comments)
- Changes specific to Qlik for WordPress Plugin:
- Changed [qlikview] shortcode to [qlik-code] to better represent Qlik Sense support. The old shortcode is still supported for backwards compatibility
- Button “Qlik Code” added to text editor to insert shortcode
- Visual editor button updated
- Corrected issue with plugin clashing with some other shortcodes resulting in incorrect display. Some Google Maps plugins were amongst those affected.
- Rewritten core code to prevent code being loaded on all pages of a site irrespective of whether or not the shortcode is present
- Added admin settings page allowing turning on/off features and detailing icon codes
- Ability to load CSS and JS files from the a CDN instead of the local webserver
- Added new shortcode [qlik-icon] to allow insertion of new vector font icons.
1.2
- Updated the highlight.js core to resolve a known bug.
1.1
- Added correct identification of set analysis and its composite parts within expressions allowing highlighting of items within it.
- Corrected list of functions within expressions as not all functions are possible in both script and expressions.
- Corrected an issue with the incorrect shortcode being added by the TinyMCE button.
- Added highlighting of format specification within a “LOAD…FROM…” statement in QlikView script.
- Updated the Highlight.js core.
1.0
- General code improvements.
- Corrected issue with $() variable use within a load statement not being highlighted correctly.
- Corrected issue with nesting of interpretation functions (those ending with a #) and those functions for which a keyword exists with the same name.
- Added highlighting of field names in most common situations.
0.2
- Added support for highlighting QlikView expressions
- Added the ability to hightlight a handful of other languages that are related to QlikView.
- Added variable definition and use support (SET, LET and $()).
- Fixed issue with interpretation functions (those ending with a #) not being highlighted correctly.
- Corrected an issue where the if function is confused with the IF statements causing incorrect highlighting.
- Fixed issue where keywords were highlighted within SQL statements.
- Added button to TinyMCE to insert the shortcode within the visual editor
0.1
- Initial pre-release.