Oolong for jEdit: A Beginner’s Guide to Setup and Features
What is Oolong for jEdit
Oolong is a plugin/extension (or set of tools) that integrates with jEdit to provide language support, syntax enhancements, and workflow improvements specific to the Oolong language or framework. This guide assumes you want basic setup, configuration, and an overview of core features so you can start using Oolong inside jEdit quickly.
Prerequisites
- jEdit installed (stable release for your OS).
- Java Runtime Environment compatible with your jEdit version.
- Network access to download plugins (or a local copy of Oolong plugin files).
Installation steps
- Open jEdit.
- Open the Plugins Manager: Plugins → Plugin Manager (or Plugins → Plugin Options → Install).
- If Oolong is listed in the Available tab, select it and click Install.
- If not listed, download the Oolong plugin jar from the project site or repository.
- To install from a downloaded jar: Plugins → Plugin Manager → Install tab → Add, then point to the jar and install.
- Restart jEdit when prompted.
Basic configuration
- Enable Oolong support: Plugins → Oolong → Enable (or check plugin options).
- File associations: Set file types to open with Oolong syntax highlighting via Global Options → Editing → File Types. Add extensions (e.g., .ool, .oolong) and assign the Oolong mode if needed.
- Preferences: Plugins → Oolong → Options — configure indentation, tab size, auto-completion, and formatting rules.
Core features and how to use them
- Syntax highlighting
- Automatic when file type is associated. If not, set the buffer mode: Buffer → Edit Mode → Oolong.
- Code folding
- Use the gutter to expand/collapse blocks. Configure fold markers in Oolong options.
- Auto-completion and snippets
- Trigger completion with Ctrl+Space (or the jEdit-configured shortcut). Snippets can be inserted via the Snippets plugin or Oolong’s snippet manager.
- Templates/macros
- Use prebuilt templates for common constructs. Record or import macros via Macros → Record Macro, then assign to keybindings.
- Built-in linter/validator (if available)
- Run validation from Plugins → Oolong → Validate or on-save if auto-validate is enabled. Fixes will be shown in the error list.
- Build/run integration
- Configure external tools: Utilities → External Tools (or Plugins → Oolong → Build Settings). Add commands for compiling/running Oolong files and map to shortcuts.
Useful keyboard shortcuts (defaults — may vary)
- Toggle Oolong mode: no default (use Buffer → Edit Mode)
- Auto-complete: Ctrl+Space
- Comment/uncomment line: Ctrl+/
- Fold/unfold: click gutter or use jEdit fold shortcuts
- Run validation: Plugins → Oolong → Validate (assign a shortcut in Global Shortcuts)
Troubleshooting common issues
- Plugin not showing: Ensure plugin jar is in jEdit’s plugins directory or installed via Plugin Manager; restart jEdit.
- No syntax highlighting: Confirm file extension is associated with Oolong mode or set buffer mode manually.
- Auto-complete not appearing: Check Oolong options and that completion is enabled; verify there’s an appropriate tag/snippet file installed.
- Validation errors not matching other tools: Ensure Oolong’s linter uses the same version/settings as your external toolchain.
Tips for productivity
- Configure a project-specific settings directory for consistent formatting across files.
- Use jEdit’s Buffer List and Workbench plugins to manage multiple Oolong files.
- Save frequently used build/run commands as External Tools and bind keys.
- Keep Oolong plugin updated via the Plugin Manager to get bug fixes and new features.
Where to get help and resources
- Official Oolong plugin repository or project page for downloads and changelogs.
- jEdit community forums and mailing lists for usage questions and plugin compatibility.
- Plugin documentation (often installed with the plugin or available online) for advanced configuration.
Quickstart example
- Install Oolong plugin, restart jEdit.
- Create a new file myprog.ool and set Edit Mode → Oolong.
- Type a simple function or class; use Ctrl+Space to auto-complete.
- Save and run validation from Plugins → Oolong → Validate.
- Configure an External Tool to run your file and bind it to F5.
If you want, I can produce a shorter cheat-sheet (one page) with the most-used commands and settings.
Leave a Reply