about summary refs log tree commit diff stats
path: root/data/maps/the_nuanced/rooms/N2 Room.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-17 15:32:53 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-17 15:32:53 -0400
commit299ba7c4f7938dd8cbb38e51c11987b2ebe286c5 (patch)
treeb9eda0cea1d0b63bf8a5edff93ef7a5fb384a9ba /data/maps/the_nuanced/rooms/N2 Room.txtpb
parente99f7bf302b528242a99b500f6c5b2423daaefd6 (diff)
downloadlingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.tar.gz
lingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.tar.bz2
lingo2-archipelago-299ba7c4f7938dd8cbb38e51c11987b2ebe286c5.zip
Fill the item pool with "Nothing"s
Diffstat (limited to 'data/maps/the_nuanced/rooms/N2 Room.txtpb')
0 files changed, 0 insertions, 0 deletions
.ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
require 'redcarpet'
require 'rouge'
require 'rouge/plugins/redcarpet'

module ApplicationHelper

  class HTML < Redcarpet::Render::HTML
    include Rouge::Plugins::Redcarpet # yep, that's it.
  end

  def title(text)
    content_for :title, text
  end

  def sortable(col, title = nil)
    title ||= col.titleize
    css_class = (col == sort_column) ? "current #{sort_direction}" : nil
    direction = (col == sort_column and sort_direction == "asc") ? "desc" : "asc"
    link_to title, {:sort => col, :dir => direction}, {:class => css_class}
  end

  def markdown(text, params = {})
    options = { fenced_code_blocks: true, highlight: true, footnotes: true }

    html_options = {}
    if params[:restricted]
      html_options[:filter_html] = true
    end

    Redcarpet::Markdown.new(HTML.new(html_options), options).render(text).html_safe
  end

  def links_sidebar
    [
      { title: "Code repositories", url: "https://code.fourisland.com/" },
      { title: "Quotes database", url: "https://www.fourisland.com/quotes" },
      { title: "Pokémon", url: "https://www.fourisland.com/poke3" },
      { title: "Wittle", url: "https://www.fourisland.com/wittle" },
    ]
  end

end