⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javacodehighlighter.java

📁 jive 论坛所有的java源码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:

    /**
     * Returns the HTML tag that starts comment blocks. For example, it could
     * be <code>&lt;i&gt;</code>.
     *
     * @return the HTML tag to start comment blocks.
     */
    public String getCommentStart() {
        return commentStart;
    }

    /**
     * Sets the HTML tag that starts comment blocks. For example, it could be
     * <code>&lt;i&gt;</code>.
     *
     * @param commentStart the HTML tag to start comment blocks.
     */
    public void setCommentStart(String commentStart) {
        this.commentStart = commentStart;
        viewer.setCommentStart(commentStart);
    }

    /**
     * Returns the HTML tag that ends comment blocks. For example, it could
     * be <code>&lt;/i&gt;</code>. The tag should correspond to the comment
     * start tag.
     *
     * @return the HTML tag to end comment blocks.
     */
    public String getCommentEnd() {
        return commentEnd;
    }

    /**
     * Sets the HTML tag that ends comment blocks. For example, it could be
     * <code>&lt;/i&gt;</code>. The tag should correspond to the comment
     * start tag.
     *
     * @param commentEnd the HTML tag to end comment blocks.
     */
    public void setCommentEnd(String commentEnd) {
        this.commentEnd = commentEnd;
        viewer.setCommentEnd(commentEnd);
    }

    /**
     * Returns the HTML tag that starts string blocks. For example, it could
     * be <code>&lt;font color=&quot;red&quot;&gt;</code>.
     *
     * @return the HTML tag to start string blocks.
     */
    public String getStringStart() {
        return stringStart;
    }

    /**
     * Sets the HTML tag that starts string blocks. For example, it could be
     * <code>&lt;font color=&quot;red&quot;&gt;</code>.
     *
     * @param stringStart the HTML tag to start string blocks.
     */
    public void setStringStart(String stringStart) {
        this.stringStart = stringStart;
        viewer.setStringStart(stringStart);
    }

    /**
     * Returns the HTML tag that ends string blocks. For example, it could be
     * <code>&lt;/font&gt;</code>. The tag should correspond to the string 
     * start tag.
     *
     * @return the HTML tag to end string blocks.
     */
    public String getStringEnd() {
        return stringEnd;
    }

    /**
     * Sets the HTML tag that ends string blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  The tag should correspond to the string
     * end tag.
     *
     * @param stringEnd the HTML tag to end string blocks.
     */
    public void setStringEnd(String stringEnd) {
        this.stringEnd = stringEnd;
        viewer.setStringEnd(stringEnd);
    }

    /**
     * Returns the HTML tag that starts keyword blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>.
     *
     * @return the HTML tag to start keyword blocks.
     */
    public String getReservedWordStart() {
        return reservedWordStart;
    }

    /**
     * Sets the HTML tag that starts reserved word blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>.
     *
     * @param reservedWordStart the HTML tag to start keyword blocks.
     */
    public void setReservedWordStart(String reservedWordStart) {
        this.reservedWordStart = reservedWordStart;
        viewer.setReservedWordStart(reservedWordStart);
    }

    /**
     * Returns the HTML tag that ends keyword blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should correspond to the start tag for
     * keyword blocks.
     *
     * @return the HTML tag to end keyword blocks.
     */
    public String getReservedWordEnd() {
        return reservedWordEnd;
    }

    /**
     * Sets the HTML tag that ends keyword blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>.  This should 
     * correspond to the start tag for keyword blocks.
     *
     * @param reservedWordEnd the HTML tag to end keyword blocks.
     */
    public void setReservedWordEnd(String reservedWordEnd) {
        this.reservedWordEnd = reservedWordEnd;
        viewer.setReservedWordEnd(reservedWordEnd);
    }

    /**
     * Returns the HTML tag that starts method blocks. For example, it could be
     * <code>&lt;font color=&quot;brown&quot;&gt;</code>.
     *
     * @return the HTML tag to start method blocks.
     */
    public String getMethodStart() {
        return methodStart;
    }

    /**
     * Sets the HTML tag that starts method blocks. For example, it could be
     * <code>&lt;font color=&quot;brown&quot;&gt;</code>. 
     *
     * @param methodStart the HTML tag to start method blocks.
     */
    public void setMethodStart(String methodStart) {
        this.methodStart = methodStart;
        viewer.setMethodStart(methodStart);
    }

    /**
     * Returns the HTML tag that ends method blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should correspond to the start tag
     * for method blocks.
     *
     * @return the HTML tag to end method blocks.
     */
    public String getMethodEnd() {
        return methodEnd;
    }

    /**
     * Sets the HTML tag that ends method blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should  correspond to the start tag 
     * for method blocks.
     *
     * @param methodEnd the HTML tag to end method blocks.
     */
    public void setMethodEnd(String methodEnd) {
        this.methodEnd = methodEnd;
        viewer.setMethodEnd(methodEnd);
    }

    /**
     * Returns the HTML tag that starts character blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>.
     *
     * @return the HTML tag to start method blocks.
     */
    public String getCharacterStart() {
        return characterStart;
    }

    /**
     * Sets the HTML tag that starts character blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>. 
     *
     * @param characterStart the HTML tag to start method blocks.
     */
    public void setCharacterStart(String characterStart) {
        this.characterStart = characterStart;
        viewer.setCharacterStart(characterStart);
    }

    /**
     * Returns the HTML tag that ends character blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should correspond to the start tag
     * for character blocks.
     *
     * @return the HTML tag to end method blocks.
     */
    public String getCharacterEnd() {
        return characterEnd;
    }

    /**
     * Sets the HTML tag that ends character blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should  correspond to the start tag 
     * for character blocks.
     *
     * @param characterEnd the HTML tag to end character blocks.
     */
    public void setCharacterEnd(String characterEnd) {
        this.characterEnd = characterEnd;
        viewer.setCharacterEnd(characterEnd);
    }

    /**
     * Returns the HTML tag that starts bracket blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>.
     *
     * @return the HTML tag to start bracket blocks.
     */
    public String getBracketStart() {
        return bracketStart;
    }

    /**
     * Sets the HTML tag that starts character blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>. 
     *
     * @param bracketStart the HTML tag to start bracket blocks.
     */
    public void setBracketStart(String bracketStart) {
        this.bracketStart = bracketStart;
        viewer.setBracketStart(bracketStart);
    }

    /**
     * Returns the HTML tag that ends character blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should correspond to the start tag
     * for bracket blocks.
     *
     * @return the HTML tag to end bracket blocks.
     */
    public String getBracketEnd() {
        return bracketEnd;
    }

    /**
     * Sets the HTML tag that ends character blocks. For example, it could be
     * <code>&lt;/font&gt;</code>.  This should  correspond to the start tag 
     * for bracket blocks.
     *
     * @param bracketEnd the HTML tag to end bracket blocks.
     */
    public void setBracketEnd(String bracketEnd) {
        this.bracketEnd = bracketEnd;
        viewer.setBracketEnd(bracketEnd);
    }

    /**
     * Gets the string value of the string escape character
     * @return the string value of the string escape character
     */
    public String getNumberStart() {
        return numberStart;
    }

    /**
     * Sets the HTML tag that starts character blocks. For example, it could be
     * <code>&lt;font color=&quot;navy&quot;&gt;</code>. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -