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 97
  • Win 49
  • Mac 23
  • Linux 25
Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28
Windows 0 0 0 0 0 0 0 0 0 1 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 0 0 0 0 0 0 0 0 1 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