ide/src/wombat/gui/text/SchemeDocument.java
private boolean commentLinesBefore(String content, int line) {
        int offset = rootElement.getElement(line).getStartOffset();

        // If there isn't a start of a comment before the text, we're not in a multiline comment.
        int startDelimiter = lastIndexOf(content, "#|", offset - 2);
        if (startDelimiter < 0)
            return false;

        //  Same thing for the end.
        int endDelimiter = indexOf(content, "|#", startDelimiter);
        if (endDelimiter < offset & endDelimiter != -1)
            return false;

        //  We're in the middle, so the lines are a comment.
        if (attributes.containsKey("comment"))
        	doc.setCharacterAttributes(startDelimiter, offset - startDelimiter + 1, attributes.get("comment"), true);
        return true;
    }
/*
    *  Highlight lines when a multi line comment is still 'open'
    *  (ie. matching end delimiter has not yet been encountered)
    */
Highlight lines when a multi line comment is still 'open'
Highlight lines when a multi line comment is still ' open '
private boolean commentLinesBefore(String content, int line) {
        int offset = rootElement.getElement(line).getStartOffset();
        int startDelimiter = lastIndexOf(content, "#|", offset - 2);
        if (startDelimiter < 0)
            return false;
        int endDelimiter = indexOf(content, "|#", startDelimiter);
        if (endDelimiter < offset & endDelimiter != -1)
            return false;
        if (attributes.containsKey("comment"))
        	doc.setCharacterAttributes(startDelimiter, offset - startDelimiter + 1, attributes.get("comment"), true);
        return true;
    }
private boolean commentLinesBefore ( String content , int line ) { int offset = rootElement . getElement ( line ) . getStartOffset ( ) ; int startDelimiter = lastIndexOf ( content , "#|" , offset - 2 ) ; if ( startDelimiter < 0 ) return false ; int endDelimiter = indexOf ( content , "|#" , startDelimiter ) ; if ( endDelimiter < offset & endDelimiter != - 1 ) return false ; if ( attributes . containsKey ( "comment" ) ) doc . setCharacterAttributes ( startDelimiter , offset - startDelimiter + 1 , attributes . get ( "comment" ) , true ) ; return true ; }
Highlight lines when a multi line comment is still 'open'
  (ie.
Highlight lines when a multi line comment is still ' open ' ( ie .
// If there isn't a start of a comment before the text, we're not in a multiline comment. //  Same thing for the end. //  We're in the middle, so the lines are a comment.