You can also share and discuss code snippets with the new quote feature 🤓 and it will do syntax highlighting ⚡️⚡️⚡️
Just select the code "< >" option in the Drop compose dialog in the quote editor.
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end
# Create a new object
g = Greeter.new("glue")
# Output "Hello Glue!"
g.salute
This might be a dumb question bc I only dabble in coding, but would this highlight code in various languages - ie java, Python, sql, etc.?
Replies