Represents a list of source code blocks in a GH_ScriptEditor window.
Methods
GetAllLines
#Convert all blocks to a single array of lines and readonly flags.
GetMutableCodeBlock
#Get all the lines that belong to the Nth mutable code block.
Parameters:
| index (int) | Index of mutable code block to retrieve. |
Returns: An array of source code lines or null if there is no Nth block.
MergeConsecutiveBlocks
#Merge all consecutive blocks with identical readonly flags.
Returns: Number of blocks merged.