示例#1
0
  /**
   * defines from which line number the counting will start.
   *
   * @param from which line the numbers will count
   * @return this instance
   */
  public final CodeBehavior setStartFromLine(final int from) {
    setShowLineNumbers(true);
    this.from.setObject(from);

    return this;
  }
  /**
   * adds line numbers on the left side of code block.
   *
   * @return this instance
   */
  public final TransparentCodeContainer setShowLineNumbers(final boolean showLineNumbers) {
    behavior.setShowLineNumbers(showLineNumbers);

    return this;
  }