Exemple #1
0
 def __init__(self, codeBlock, site):
     self.codeBlock = codeBlock
     SourceCodeContainer.__init__(
         self,
         codeBlock.codeText,
         codeBlock.GetFileName(),
         codeBlock.sourceContextCookie,
         codeBlock.startLineNumber,
         site,
     )
Exemple #2
0
	def __init__(self, codeBlock, site):
		self.codeBlock = codeBlock
		SourceCodeContainer.__init__(self, codeBlock.codeText, codeBlock.GetFileName(), codeBlock.sourceContextCookie, codeBlock.startLineNumber, site)
Exemple #3
0
 def GetScriptletTextAttributes(self, code, delim, flags):
     trace("GetScriptletTextAttributes", code, delim, flags)
     container = SourceCodeContainer(code, "<Temp Code Block>")
     return container.GetSyntaxColorAttributes()