exercism.io

https://github.com/exercism/exercism.io

Ruby

Quickly ramp up in new programming languages.

Rouge::Formatters::HTMLExercism#initialize

Initialize with options.

If `:inline_theme` is given, then instead of rendering the
tokens as <span> tags with CSS classes, the styles according to
the given theme will be inlined in "style" attributes.  This is
useful for formats in which stylesheets are not available.

Content will be wrapped in a tag (`div` if tableized, `pre` if
not) with the given `:css_class` unless `:wrap` is set to `false`.

Source | Google | Stack overflow

Edit

git clone [email protected]:exercism/exercism.io.git

cd exercism.io

open lib/rouge/formatters/html_exercism.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Rouge--Formatters--HTMLExercism-initialize-for-pr


# Commit to git

git add lib/rouge/formatters/html_exercism.rbgit commit -m "better docs for Rouge::Formatters::HTMLExercism#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Rouge--Formatters--HTMLExercism-initialize-for-pr

hub pull-request


# Celebrate!