def do_startlang(self, subcmd, opts, lang): """${cmd_name}: generate stub files for a new UDL-based language ${cmd_usage} ${cmd_option_list} Example: ${name} ${cmd_name} RHTML --ext .rhtml --is-html-based Use this to get starter files for adding a *completely new language* to Komodo. This involves the following pieces: - An XPCOM component (written in Python) that gives basic data about the new language - A UDL-based lexer for syntax coloring of the new language. UDL stands for "User-Defined Language". It is a language (and compiler) for describing the syntax of a language. See `${name} help udl' and Komodo's UDL documentation for details on UDL. - Some "New File..." templates. """ if opts.source_dir is None: opts.source_dir = os.curdir koextlib.create_udl_lang_skel(normpath(opts.source_dir), lang, ext=opts.ext, is_html_based=opts.is_html_based, is_xml_based=opts.is_xml_based, dry_run=opts.dry_run, log=log)