Sonar

Colorize the source code in the Resource viewer

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.12
  • Component/s: Source code viewer
  • Labels:
    None
  • Number of attachments :
    0

Description

A basic algorithm would be enough and very useful in a first time to get a more readable source code :

  • All key words of the language with color1
  • All String (between "") with color2
  • All comments with color3
  • In java, all javadoc with color4

Clover reports are good examples.

Issue Links

Activity

Hide
Simon Brandhof added a comment -

It can be done with following javascript libraries :

They support many languages (Java/PHP...) and are extendable.

Show
Simon Brandhof added a comment - It can be done with following javascript libraries : They support many languages (Java/PHP...) and are extendable.
Hide
Freddy Mallet added a comment -

Sonar Squid can now be used to do such colorization, see : http://svn.codehaus.org/sonar/trunk/sonar-squid/src/main/java/org/sonar/squid/colorizer/.

Show
Freddy Mallet added a comment - Sonar Squid can now be used to do such colorization, see : http://svn.codehaus.org/sonar/trunk/sonar-squid/src/main/java/org/sonar/squid/colorizer/.
Hide
Freddy Mallet added a comment -

To get a more readable source code the space between two lines of code should also be reduced.

Show
Freddy Mallet added a comment - To get a more readable source code the space between two lines of code should also be reduced.

People

Vote (3)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: