2

I'm using middleman-syntax to highlight code in my blog

I'm writing my templates in markdown... and was wondering, how does pygments guess lexer?

  if I write

  ´´´ruby
  ruby code here
  ```

  it doesnt work

  if I write

  ```      
  #!ruby
  ruby here
  ```

  it does

  If I write

  ```
  <?php
  php code here
  ```

  It does

Is there a list of how pygments guess it?

4

1 回答 1

1

据我所知,Pygments 没有猜到。

语言学家会

于 2013-03-02T04:22:14.583 回答