From V8 SP4 onwards, you can invoke the latest version of Sublime Text (a third-party source code editor) from within Kony Visualizer. This feature ensures that developers have the option to use an alternative tool to write and modify code within Visualizer, in addition to Visualizer's in-built code editor. You can also make use of the auto-complete Intellisense feature for Kony UI, API, and SDK functions while working with Sublime Text.
Sublime Text is a proprietary cross-platform source code editor with a Python API. This source code editor natively supports various programming and markup languages. You can use Sublime Text to add functions with plugins, which are typically community-built and maintained under free-software licenses.
Before you can start using Sublime Text from Visualizer, you must meet the following prerequisites:
After you have met the prerequisites mentioned previously, you must enable the feature to invoke Sublime Text from Visualizer.
Note: By default, Visualizer will recognize Sublime Text if it is installed at a default location.
To enable the feature for Kony Visualizer Enterprise, follow these steps:
The Preferences window appears.
To enable the feature for Kony Visualizer, follow these steps:
The Visualizer Preferences window appears.
Now that you have enabled the required option, you can open any JavaScript file in Sublime Text from Visualizer.
To do so, follow these steps:
You can make any changes to the code in any JavaScript file/folder by using Sublime Text.
You can add the auto-complete Intellisense feature for Kony UI, API, and SDK functions while working with Sublime Text from Visualizer. You must install the Ternjs for Sublime package to enable this feature. Ternjs is a package for Sublime Text that provides JavaScript auto-fill intelligence.
To install Ternjs, follow these steps:
Check out the following code into a sub-directory of your Sublime Text's Packages directory.
cd /path/to/sublime-text-N/Packages git clone https://github.com/ternjs/tern_for_sublime.git
cd tern_for_sublime npm install
Note: On OS X, you might also need to install the Fix Mac Path Sublime plugin to help Sublime Text to locate your node binary.
Once you successfully install the Ternjs for Sublime package, the Kony JavaScript auto-complete feature appears as you start typing in the Sublime Text editor.
Note: If you have not installed the Ternjs for Sublime package, the Missing Dependencies window appears asking you to install that package.
Rev | Author | Edits |
V8 SP4 | SS |
Copyright © 2013 Kony, Inc. All rights reserved. |