;ò 0/MDc@sSdkZdklZdklZdklZd„Zdefd„ƒYZdS(N(sECMDSPluginError(sECMDSGenerator(sHLErrorcCst|ƒSdS(sReturns a plugin instance.N(sPluginsconfig(sconfig((s)/opt/ecromedos-1.0.1/plugins/highlight.pys getInstancessPlugincBs,tZd„Zd„Zd„Zd„ZRS(NcCsti|ƒdS(N(sECMDSGenerators__init__sself(sselfsconfig((s)/opt/ecromedos-1.0.1/plugins/highlight.pys__init__scCsdS(N((sself((s)/opt/ecromedos-1.0.1/plugins/highlight.pysflush"sc Cs5h} |i}x%|o|i| |i<|i}qWy| d o|SnWntj o |SnX|iƒ}|i || ƒ}t i|ƒ}|iƒ}|iƒ|i}xT|oL|i}|iƒ|i|iƒ o|i|ƒn |iƒ|}q¸W|i|ƒ|iƒ|iƒ|SdS(s!Prepare @node for target @format.ssyntaxN(soptionssnodes propertiesspropscontentsnamesnextsKeyErrors getContentsstringsselfs highlightsresultslibxml2sparseDocsdocsgetRootElementsroots unlinkNodeshasPropsaddChildsfreeNodes replaceNodesfreeDoc( sselfsnodesformatsstringsdocspropsresultsnextsrootsoptions((s)/opt/ecromedos-1.0.1/plugins/highlight.pysprocess's<              cCs‡yRy!t|dƒ}|itƒWnXtj o'd|df}t|dƒ‚n't j o|it ƒd}nXy!t|dƒ}|i |ƒWnRtj o'd|df}t|dƒ‚n!t j o|i dƒnXy'|i ||d||dtƒ}Wn2t j o&|i ||d|d tƒ}nXWn*tj o}tt|ƒdƒ‚nX|Sd S( sCall syntax highlighter.s startlinesInvalid start line '%s'.s highlightislinestepsInvalid line stepping '%s'.ssyntaxs colorschemesprintN(sintsoptionss startlinesselfs lineNumberssTrues ValueErrorsmsgsECMDSPluginErrorsKeyErrorsFalsessteppings lineSteppingshighlightStringsstringsresultsHLErrorsesstr(sselfsstringsoptionss startlinesresultssteppingsmsgse((s)/opt/ecromedos-1.0.1/plugins/highlight.pys highlightTs8    (s__name__s __module__s__init__sflushsprocesss highlight(((s)/opt/ecromedos-1.0.1/plugins/highlight.pysPlugins   -( slibxml2serrorsECMDSPluginErrorshylight.ecmdsgeneratorsECMDSGenerators hylight.errorsHLErrors getInstancesPlugin(sECMDSGenerators getInstancesPluginslibxml2sECMDSPluginErrorsHLError((s)/opt/ecromedos-1.0.1/plugins/highlight.pys? s