前言介紹
- 這款 WordPress 外掛「Qlik for WordPress」是 2014-10-14 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2018-02-14,距離現在已有 2637 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
qlik | syntax | qlikview | Highlight | qlik sense |
內容簡介
這個 WordPress 外掛可以在任何 WordPress 頁面或文章上自動突出顯示 QlikView 和 Qlik Sense 腳本的語法。此外,它允許在頁面和文章中輕鬆添加 QlikView 和 Qlik Sense 的用戶界面圖標。它是由 Matt Fryer 開發的,他是一位經驗豐富的 Qlik 顧問,也是熱門博客QlikViewAddict.com的作者。
功能
它目前支持突出顯示以下 Qlik 腳本和表達式元素:
行注釋 //
塊注釋 /../
REM 注釋 REM…;
大多數 QlikView 11.20+ 和 Qlik Sense 關鍵字、語句和函數(在腳本或表達式內允許使用的)
變數定義(使用 SET 和 LET)和變數使用(在 $() 內)
大多數常見情況下的字段名稱
目前,所有 Qlik Sense Hub 和管理控制台圖標都被支持,還有少量的其他通用圖標(例如 Qlik 徽標)。
使用方式
該插件使用 WordPress 短碼來應用突出顯示和插入圖標。
語法突出顯示
只需在 [qlik-code] … [/qlik-code] 短碼標籤內包裹任何 Qlik 代碼區塊即可。默認情況下,插件將假定標籤中包含的代碼是 Qlik 腳本,並將其相應地進行突出顯示。您可以使用開頭標籤內的 type 參數指定替代代碼類型。例如:[qlikview type=”exp”]=num(MyField)[/qlikview]。目前支持的代碼類型是“qvs”,“exp”(或“qve”),“sql”,“vbscript” 和“javascript”。如果沒有指定代碼類型,則假定為 “qvs”。
或者,您可以使用 WordPress 文本和可視化帖子/頁面編輯器中的按鈕輸入短碼。選擇文章或頁面內的代碼區塊,然後單擊編輯器菜單上的“Qlik Code”按鈕。詢問代碼塊應被突出顯示為何種代碼類型。完成後,單擊“確定”,短碼標籤將自動添加在代碼區塊周圍。
圖標
只需在您希望出現圖標的文章或頁面中放置短碼標籤 [qlik-icon icon=””]。您可以在標籤的 icon 參數中指定要使用的圖標。例如:[qlik-icon icon=”qicon-qlik”] 將插入 Qlik 徽標。可在 WordPress 管理閘道中的 Qlik for WordPress 設置頁面中找到可能的圖標及其相關代碼。
或者,您可以使用 WordPress 文本和可視化帖子/頁面編輯器中的按鈕輸入短碼。在文章或頁面內放置游標,然後單擊編輯器菜單上的“Qlik Icon”按鈕。詢問您要插入的圖標代碼。完成後,單擊“確定”,短碼標籤將被添加。
反饋
如果您發現任何問題或有任何建議改進該插件,請通過此處的支持選項或在QlikViewAddict.com上發表評論告訴我。
致謝
我要感謝 Ivan Sagalaev 和所有其他 Highlight.js 的貢獻者,他們為這個插件打下了基礎。
原文外掛簡介
This WordPress plugin provides automatic syntax highlighting of QlikView and Qlik Sense script on any WordPress page or post. Additionally, it allows for easy addition of QlikView and Qlik Sense user interface icons within pages and posts. It was developed by Matt Fryer, a highly experienced Qlik consultant and author of the popular blog QlikViewAddict.com.
Features
It currently supports highlighting of the following Qlik script and expression elements:
Line comments //
Block comment /../
REM comment REM…;
Most QlikView 11.20+ and Qlik Sense keywords, statements and functions (that are permitted within the script or expressions)
Variable definitions (using SET and LET) and variable use (within $())
Field names in most common situations
Currently, all Qlik Sense Hub and Management Console icons are supported as well as a small number of additional generic icons (eg. Qlik logo).
How to use
The plugin utilises WordPress shortcodes to apply the highlighting and insert icons.
Syntax highlighting
Simply wrap any Qlik code blocks within the [qlik-code] … [/qlik-code] shortcode tags. By default, the plugin will assume that the code contained in the tags is Qlik script and will highlight it accordingly. You can specify an alternative code type using the type parameter within the opening tag. For example [qlikview type=”exp”]=num(MyField)[/qlikview]. Currently supported code types are “qvs”, “exp” (or “qve”), “sql”, “vbscript” and “javascript”. If no code type is specified then “qvs” will be assumed.
Alternatively, the shortcode can be entered using the buttons within the WordPress text and visual post/page editors. Select the block of code within the post or page, then click the Qlik Code button on the editor menu. You will be prompted for what code type the block should be highlighted as. Once complete, click OK and the shortcode will be added around the code block for you.
Icons
Simply place the shortcode tag [qlik-icon icon=””] in your post or page where you wish the icon to appear. You can specify the icon you wish to use within the icon parameter of the tag. For example [qlik-icon icon=”qicon-qlik”] will insert the Qlik logo. Possible icons and their related codes can be found within the Qlik for WordPress settings page in the WordPress Admin Portal.
Alternatively, the shortcode can be entered using the buttons within the WordPress text and visual post/page editors. Place the cursor within the post or page where you wish the icon to be placed, then click the Qlik Icon button on the editor menu. You will be prompted for the icon code for the icon you wish to insert. Once complete, click OK and the shortcode will be added for you.
Feedback
If you spot any issues or have any suggestions to improve the plugin, please let me know either via the support tab here, or via a comment on QlikViewAddict.com.
Credits
I’d like to thank Ivan Sagalaev and all the other contributors of Highlight.js which this plugin is based upon.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Qlik for WordPress」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.2 | 1.0 | 1.1 | 1.2 | 2.0 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。