Box and Line coding is a unique feature of OptiPerl that helps visualize perl code.


Line coding




Line coding are curves that connect opening and closing brackets. Their width, style and color symbolize the level of the bracket. The default in OptiPerl is each bracket level to have width of one pixel more than the previous level. Also the first level does not have a line, but has instead a box around it (used better to color subroutines). These are defaults however and may be changed from the Options Dialog / Box & Line coding.



Box coding




Box coding are boxes that color parts of the script. For brackets and parenthesis, each level has a narrower box by one character on both sides. Also Here-Document and Pod statements can be colored.


The box coding may also be highly customized in Options Dialog / Box & Line coding.


icon_idea Notice that for boxes you can select a non-solid pattern. Non-solid patterns are see-threw, so you can see the other boxes under them. Play around with the options to fit box & line coding to your preferences.


icon_exclaim While color coding can make perl code a work of art (literally! icon_smile), proper indentation of brackets should always be used. Remember that you might want to send someone that does not have OptiPerl your code! But if your habits are just uncorrectable, you can also beatify your code using Perl tidy.




Top  Previous  Next