pygments/pygments.rb: ๐ Ruby wrapper for Pygments syntax highlighter
05-Jul-2025 4
pygments.rb is a Ruby wrapper for Pygments syntax highlighter.
pygments.rb works by talking over a simple pipe to a long-lived Python child process. This library replaces github/albino, as well as an older version of pygments.rb that used an embedded Python interpreter.
Each Ruby process that runs has its own 'personal Python'; for example, 4 Unicorn workers will have one Python process each. If a Python process dies, a new one will be spawned on the next pygments.rb request.
pygments/pygments.rb: ๐ Ruby wrapper for Pygments syntax highlighter #ruby #rubydeveloper #rubyonrails #pygments/pygments.rb: #wrapper #Pygments #syntax #highlighter https://rubyonrails.ba/link/pygments-pygments-rb-ruby-wrapper-for-pygments-syntax-highlighter