ide/src/wombat/gui/text/SchemeDocument.java
private void commentLinesAfter(String content, int line) {
        int offset = rootElement.getElement(line).getEndOffset();

        //  End of comment not found, nothing to do

        int endDelimiter = indexOf(content, "|#", offset);

        if (endDelimiter < 0)
            return;

        //  Matching start/end of comment found, comment the lines

        int startDelimiter = lastIndexOf(content, "#|", endDelimiter);

        if (startDelimiter < 0 || startDelimiter <= offset) {
        	if (attributes.containsKey("comment"))
        		doc.setCharacterAttributes(offset, endDelimiter - offset + 1, attributes.get("comment"), true);
        }
    }
/*
    *  Highlight comment lines to matching end delimiter
    */
Highlight comment lines to matching end delimiter
Highlight comment lines to matching end delimiter
private void commentLinesAfter(String content, int line) {
        int offset = rootElement.getElement(line).getEndOffset();
        int endDelimiter = indexOf(content, "|#", offset);
        if (endDelimiter < 0)
            return;
        int startDelimiter = lastIndexOf(content, "#|", endDelimiter);
        if (startDelimiter < 0 || startDelimiter <= offset) {
        	if (attributes.containsKey("comment"))
        		doc.setCharacterAttributes(offset, endDelimiter - offset + 1, attributes.get("comment"), true);
        }
    }
private void commentLinesAfter ( String content , int line ) { int offset = rootElement . getElement ( line ) . getEndOffset ( ) ; int endDelimiter = indexOf ( content , "|#" , offset ) ; if ( endDelimiter < 0 ) return ; int startDelimiter = lastIndexOf ( content , "#|" , endDelimiter ) ; if ( startDelimiter < 0 || startDelimiter <= offset ) { if ( attributes . containsKey ( "comment" ) ) doc . setCharacterAttributes ( offset , endDelimiter - offset + 1 , attributes . get ( "comment" ) , true ) ; } }
Highlight comment lines to matching end delimiter
Highlight comment lines to matching end delimiter
//  End of comment not found, nothing to do //  Matching start/end of comment found, comment the lines