C.class.php 596 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class C extends Readme {
  3. public static function manifest(){
  4. return array(
  5. 'uid' => 'clike',
  6. 'label' => 'Source C++/C',
  7. 'description' => 'Fichier contenant du langage c,c++ ou proche (clike)',
  8. 'fromExtension' => array('c','cpp','h','hpp'),
  9. 'toExtension' => 'cpp'
  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'=>'clike',
  18. 'theme'=>'monokai',
  19. 'lineNumbers' => true,
  20. 'readOnly' => false
  21. )
  22. );
  23. }
  24. }
  25. ?>