-
Notifications
You must be signed in to change notification settings - Fork 0
Syntax Highlighting for external editors
OpenHAB has a great development environment with the "openHAB Designer". But in some cases you want to use another editor to make changes to the configuration files of openHAB. To make this more effectiv there are some files to enable syntax highlighting for openHAB-files in these editors.
mcedit is an editor which comes with mc (Midnight Commander).
-
download copy the syntax-files to /usr/share/mc/syntax/
-
https://code.google.com/p/openhab-samples/source/browse/syntaxhl/mc/?repo=wiki
-
insert the following lines to the file Syntax in /usr/share/mc/syntax/
file ..\*\\.(items)$ openHAB\sItems
include openhab-items.syntax
file ..\*\\.(sitemap)$ openHAB\sSitemap
include openhab-sitemap.syntax
file ..\*\\.(persist)$ openHAB\sPersistence
include openhab-persist.syntax
file ..\*\\.(rules)$ openHAB\sRules
include openhab-rules.syntax
- edit the Debian-line from
file (rules|rocks)$ Debian\srules
tofile (rocks)$ Debian\srules
because it interferes with openHABs rules-files.
Notepad++ Version 6.2 or above is required to support UDL2 (User Defined Language v2).
http://notepad-plus-plus.org/news/notepad-6.2-release-udl2.html
- Download the UDL2-Files (openHAB-
*
.xml) - https://code.google.com/p/openhab-samples/source/browse/syntaxhl/npp/?repo=wiki
- Install or update Notepad++ if necessary
- http://notepad-plus-plus.org/download/
- Open Notepad++
- Click "Language" (1)
- Click "Define your language.." (2)
- Click "Import..." (3)
- Select one of the downloaded XML-files
- Done.
feel free to contribute..
Installation
Community
- Support
- News Archive
- Presentations
- How to Contribute
- IDE Setup
- How to Implement a Binding
- How to Implement an Actions
- User Interfaces
- Classic UI
- iOS Client
- Android Client
- GreenT UI
- Bindings
- Asterisk Binding
- Bluetooth Binding
- Comfo Air Binding
- CUPS Binding
- digitalSTROM Binding
- DMX512 Binding
- EnOcean Binding
- Epson Projector Binding
- Exec Binding
- Fritz!Box Binding
- Fritz AHA Binding
- Homematic Binding
- HTTP Binding
- IHC / ELKO Binding
- KNX Binding
- Koubachi Binding
- MAX!Cube Binding
- MiLight Binding
- Modbus TCP Binding
- MPD Binding
- MQTT Binding
- Network Health Binding
- Nibe Heatpump Binding
- Nikobus Binding
- Novelan/Luxtronic Heatpump Binding
- NTP Binding
- One-Wire Binding
- Onkyo AV Receiver Binding
- OpenSprinkler Binding
- OSGi Configuration Admin Binding
- Philips Hue Binding
- Piface Binding
- Pioneer-AVR-Binding
- Plugwise Binding
- PLCBus Binding
- Pulseaudio Binding
- RFXCOM Binding
- Samsung TV Binding
- Serial Binding
- Snmp Binding
- Squeezebox Binding
- System Info Binding
- Somfy URTSI II Binding
- Sonos Binding
- TCP/UDP Binding
- TinkerForge Binding
- VDR Binding
- Wake-on-LAN Binding
- Z-Wave Binding
- Persistence
- db4o Persistence
- rrd4j Persistence
- Sql Persistence
- Sen.Se Persistence
- Cosm Persistence
- Logging Persistence
- Exec Persistence
- Automation
- Scripts
- Rules
- Actions
- Misc
- REST-API
- Security
- Google Calendar Support
- Twitter Action
- Service Discovery
- Dropbox Bundle
- CometVisu
Samples
- Item definitions
- Sitemap definitions
- Binding configurations
- Rules
- REST Examples
- Tips & Tricks
- FAQ
- XSLT Transforms
- Scripts
- Integration with other applications
- Syntax highlighting for external editors
- Update-Scripts
- Samples-Comfo-Air-Binding
Release Notes