code('some code'); $crayon->language('php'); $crayon->title('the title'); $crayon->marked('1-2'); $crayon->is_inline(FALSE); // Settings $settings = array( // Just regular settings CrayonSettings::NUMS => FALSE, CrayonSettings::TOOLBAR => TRUE, // Enqueue supported only for WP CrayonSettings::ENQUEUE_THEMES => FALSE, CrayonSettings::ENQUEUE_FONTS => FALSE); $settings = CrayonSettings::smart_settings($settings); $crayon->settings($settings); // Print the Crayon $crayon_formatted = $crayon->output(TRUE, FALSE); echo $crayon_formatted; // Utility Functions function crayon_print_style($id, $url, $version) { echo '',"\n"; } function crayon_print_script($id, $url, $version) { echo '',"\n"; } function crayon_resources() { global $CRAYON_VERSION; $plugin_url = CrayonGlobalSettings::plugin_path(); // jQuery only needed once! Don't have two jQuerys, so remove if you've already got one in your header :) crayon_print_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', $CRAYON_VERSION); crayon_print_style('crayon-style', $plugin_url.CRAYON_STYLE, $CRAYON_VERSION); crayon_print_script('crayon_util_js', $plugin_url.CRAYON_JS_UTIL, $CRAYON_VERSION); crayon_print_script('crayon-js', $plugin_url.CRAYON_JS, $CRAYON_VERSION); crayon_print_script('crayon-jquery-popup', $plugin_url.CRAYON_JQUERY_POPUP, $CRAYON_VERSION); }