Monday, March 14, 2022

[SOLVED] how to get source code syntax working in the maven-fluido-skin maven site skin?

Issue

The bootstrap based maven-fluido-skin skin is eye candy but I cannot figure out how to get source code to render within the apt pages. Does anyone have an example of how to put an xml or java code snippet into the source apt so that it renders as syntax highlighted in the output html page?


Solution

You can activate the line numbers by an option for the fluido skin:

<project name="xxx">
  [...]
  <custom>
    <fluidoSkin>
      <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
    </fluidoSkin>
  </custom>
  [...]
</project>

This is an excerpt of the documentation.



Answered By - khmarbaise
Answer Checked By - Robin (WPSolving Admin)