Skip to content

Conversation

@Iximiel
Copy link
Member

@Iximiel Iximiel commented Dec 13, 2024

@gtribello
This should solve the problem of the phantom newlines while copy-pasting things from the <pre> with the plumed prettied code, at least on Firefox/Linux, and on Firefox/Windows and Edge/Windows.

I also checked the colored code in the rendered markdown of gh, and they have used to color the various token, so I think is the way to go

Then we should talk about moving into using some external package to prepare the HTML parts (something like dominate, or check if beautifulsoup can help) to preserve the mental health of the next one that will dive into PlumedFormatter.py. For things like remembering to close the brackets is a bless

By testing on the WSL with python 3.12 I saw that the regexes of the lexer do not work there, we should investigate

@gtribello gtribello merged commit dbdee92 into plumed:main Feb 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants