Possible Duplicates:
stackoverflow syntax highlighting
Syntax highlighting hints

Stack Overflow awesomely detects what language a code block is and syntax highlights it accordingly. But sometimes it fails. Is it possible to explicitly tell it what the language is?


if ( force_ssl_admin() && !is_ssl() ) {
    if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
        wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));
    } else {
        wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);


def destroy
  @payment = Payment.find(params[:id])

  redirect_to :back

yaml (FAIL)

foo: this is foo!
bar: this is bar!
id: 5

marked as duplicate by Grace Note, juan, user27414, ChrisF, jjnguy Jun 29 '10 at 14:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jun 29 '10 at 14:15

This question came from our site for professional and enthusiast programmers.

Browse other questions tagged .