I'm curious if there is a way to hack Spyder's syntax coloring algorithm to give it an alternate text type. Specifically, I'd like to be able to define two types of comments: narrative comments which describe the code and commented out code blocks. The former should be colored a conspicuous color as they organize, partition, and describe the code in a narrative fashion, while the latter should be an inconspicuous color as they are entirely intended to be skipped over, often slightly different copies of nearby code blocks. One might try using """ comments for narration and # comments for code blocks but the string comments are colored as strings, I'd like the narration comments to be separate.
A simple solution would be to differentiate comments marked with # from comments marked with ##, the latter being narration so that it is easier to block comment text with a single character, as is already built in. Any comments or solution ideas? -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
