Css.class.php 546 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class Css extends Readme {
  3. public static function manifest(){
  4. return array(
  5. 'uid' => 'css',
  6. 'label' => 'Css',
  7. 'description' => 'Feuille de style CSS',
  8. 'fromExtension' => array('css','scss'),
  9. 'toExtension' => 'css'
  10. );
  11. }
  12. public static function toHtml($resource,$sketch){
  13. $infos = self::manifest();
  14. return array(
  15. 'content'=>'<textarea>'.$resource->content.'</textarea>',
  16. 'codemirror' => array(
  17. 'mode'=>'css',
  18. 'theme'=>'monokai',
  19. 'lineNumbers' => true,
  20. 'readOnly' => false
  21. )
  22. );
  23. }
  24. }
  25. ?>