Taglib : tagColor
[ Home Page ]

Index

  • Presentation
    With JSP you can create and add a new TAGs in your site.

    The taglib directive :
    <%@ taglib uri="tag_library_URI" prefix="tag_prefix" %>
    You can use the new tag :
    <tag_prefix:tag_method>
    ... votre code ...
    </tag_prefix:tag_method>

  • tagColor
    With this component you can add a "tag" librarie to colorized the java code send in your JSP page. It's easy to add other language in this tag librarie. .

  • Sample JSP code :
    <%@ taglib uri="javaside-taglib.tld" prefix="javaside" %>

    <javaside:srcColor code="java">
    ... your JAVA code ...
    </javaside:srcColor>


  • Parameters :
    NameRequiredComments
    codeNoTo chose the language
    Only "java" in the current version
    cssNoTo use CSS, define css prefix to use
    Sample with css="jv" you use :
    • jvcom : for comments
    • jvstr : for strings
    • jvkw1 / jvkw2 / jvkw3 : For java keyword
    cmcolorNoWithout CSS to change default comments color (#40B040)
    kw1color
    kw2color
    NoWithout CSS to change default java keyword color (#0000F0 / #FF0000)


  • Samples use :
    Sample 1 : srcColor_us.jsp

    sample 2 :
    Use this to test this tag with your java code.
    Your source code : (use CSS )



  • Download :