With the successful migration to HTML5, Kepion's Code Editor has received some major and minor updates we thought you should know about. We hope these changes improve your experience writing SQL and MDX Rules in Kepion!
Line Numbers
A simple, though essential update to the Code Editor, line numbers help you identify and reference specific parts of SQL and MDX Rules.
Section Selection
If you want to select sections of the Rule using your keyboard, you can now do so by selecting the Ctrl + Alt + Arrow Keys.
Advanced Syntax Highlighting
We have updated syntax highlighting to instantly render all structures in distinct colors.
The Code Editor does not instantly highlight errors. It will identify them when you save the Rule, though.
Modes
The Code Editor now has two modes: Authoring and Publish (Read-only).
Switch between the two by clicking the drop-down and selecting the desired mode.
In Authoring mode, you have the ability to write and edit the Rule. Publish (Read-only), as the name suggests, prevents users from making changes. The purpose of Publish (Read-only) is to see how a variable will render when a Rule is published.
In the above example, you can see how the variable ${Current Month} transforms to 20200400 when the mode is switched.
Find and Replace Text
Use Ctrl + F to open the text finder.
Find Text
- Allows you to move between found instances
- Makes search case sensitive
- Searches based on full word(s)
Tip: You can turn on both search restrictions to further narrow your search.
Empty or Replace Text
To empty or replace text, you need to first enter text in the Find Text... field. Enter your replacement text in the Empty or replace text... field. Leave the field empty if you want to delete found instances of the text.
- Replaces next found instance with new text
- Replaces all found instances with new text