ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

IRC Syntax

by barnumbirr ST3

IRC log file syntax highlighting for Sublime Text.

Details

Installs

  • Total 102
  • Win 49
  • Mac 25
  • Linux 28
Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-irc

IRC log file syntax highlighting for Sublime Text.

Supported Formats

  • irssi-!- event markers, unbracketed timestamps
  • weechat-->, <--, -- event markers, tab-separated fields
  • HexChat* event markers, named-month timestamps (Mar 27 12:34:56)
  • mIRC* event markers, bracketed timestamps ([12:34])
  • ZNC*** event markers, Joins:/Parts:/Quits: keywords

Highlighted Elements

  • Timestamps — bracketed, unbracketed, ISO datetime, named-month, parenthesized
  • Chat messages<nick> with prefix support (@, +, %, ~, &)
  • Events — join, quit, part, kick, mode, nick change, topic change, user info
  • Inline content — URLs (http, https, ftp, irc, ircs, ssh, magnet, mailto), channels (#, &), hostmasks, virtual hosts
  • Log markers--- Log opened/closed, Session Start/Close, **** BEGIN/END LOGGING

IRC log files are auto-detected when possible via content matching.

Preview

irssi formatted logs with Sublime Text's default Monokai color scheme:

sublime-irc preview

Installation

With Package Control

  1. Install Package Control
  2. Install IRC Syntax package

    Platform Install Command
    macOS Cmd + Shift + P → Package Control: Install Package → IRC Syntax
    Linux/Windows Ctrl + Shift + P → Package Control: Install Package → IRC Syntax
  3. IRC log files are auto-detected. If not, select 'IRC' from View → Syntax.

Without Package Control

  1. Locate your Sublime Text “Packages” directory and navigate to it

    Platform Installation Path
    Linux ~/.config/sublime-text/Packages/
    macOS ~/Library/Application\ Support/Sublime\ Text/Packages/
    Windows %AppData%\Roaming\Sublime Text\Packages
  2. Clone this repository into IRC Syntax directory

    git clone https://github.com/barnumbirr/sublime-irc.git 'IRC Syntax'
    

Configuration

Uniquely colored nicknames

Navigate to Preferences → Customize Color Scheme and add the following to your theme rules:

{
        "name": "IRC Nickname",
        "scope": "entity.name.tag.nickname.irc",
        "foreground": ["#FF0000", "#00FF00", "#0000FF"]
    }

These foreground colors should be readable in most themes.

License:

Copyright 2021-2026 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Buy me a coffee?

If you feel like buying me a coffee (or a beer?), donations are welcome:

BTC : bc1qq04jnuqqavpccfptmddqjkg7cuspy3new4sxq9
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS
ETH : 0x2238A11856428b72E80D70Be8666729497059d95
LTC : MQwXsBrArLRHQzwQZAjJPNrxGS1uNDDKX6