code-prettify icon indicating copy to clipboard operation
code-prettify copied to clipboard

colors...

Open danturn opened this issue 8 years ago • 0 comments

Hi, this maybe a silly question:

If i have a code block like this:

defmodule WebsiteWeb.PageController do
  use WebsiteWeb, :controller

  def index(conn, _params) do
    render conn, "index.html"
  end
end

when it gets rendered it gets the class "prettyprinted" applied to the pre and the code elements

if i use a different css by adding this in my functions.php file:

function my_prettify_skin( $skin ) { return 'sunburst'; } add_filter( 'prettify_skin', 'my_prettify_skin' );

it doesnt apply the correct css to the backgrounds as its looking for the class "prettyprint" not "prettyprinted"

am i dont something silly?

thanks

Dan

danturn avatar Aug 16 '17 15:08 danturn