Feature Request: Integrate Code Formatting and Prettification Options
Problem Statement
As of now, the "codeverter" website does not provide users with the ability to automatically format or prettify their converted code. Including code formatting and prettification options would enhance the readability and maintainability of the generated code, leading to an improved user experience.
Proposed Solution
I propose implementing a user-friendly interface element, such as a button, that allows users to opt for automatic code formatting and prettification during the code conversion process. The selected formatting preferences should be applied to the converted code before it is displayed to the user.
To achieve this functionality, consider integrating existing, well-established code formatting libraries (e.g., Prettier etc.) that are compatible with various programming languages. This might need user to select the programming language they are converting from.
I believe the converted code already has pretty good formatting, but this could further improve that. I don't think however that it should be toggleable, as formatted code will always be preferred IMO.
We can add Prettier to the output, before it is highlighted. I've done something similar in the past that may help: https://github.com/appwrite/pink/blob/main/apps/pink/src/components/CodePreview.svelte
If you want to tackle this, let me know and I'll assign you 😄
I actually forgot to mention. I meant formatting on input data. it might me copied from somewhere and user might want to view it one last time before conversion so implementing it actually makes sense.