DArtagnant / blueJ-code-highlighter

format java code in html, imitating the style of the blue-J IDE
GNU General Public License v3.0
1 stars 0 forks source link

Add class indentation for functions in incomplete code #8

Closed blastegit closed 1 month ago

blastegit commented 1 month ago

It should be borne in mind that the code sent is not necessarily beautiful java code starting with the declaration of a new class (public class NomdetaClass { ). In the many cases where you only want to display a method, for example, the placement of the method's closing brace is poorly indented

DArtagnant commented 1 month ago

Can't reproduce. Do you have screenshots ?

DArtagnant commented 1 month ago

In java functions must be in a class. So yes, the class indentation is currently missing for incomplete code.

DArtagnant commented 1 month ago

done. please active functions_always_in_class and do not mix incomplete code (only functions) with classes because the 'fake' class indentation created for the functions never stops.