Is there a way to get Polystyle to recognize new languages? In my case, I want to reformat code in the awk programming language. However, awk is not on the list of supported languages.
Is there a way for users to define a new language or to request that a new language be added? I post this here, on the Multi-Edit site, because (ironically) there is no user forum or discussion area on Polystyle’s own web site! Thanks in advance.
Failing that, does anyone know of any products (commercial or open source) which might have a code beautifier or code reformatter for awk? TIA.
If you look in your Polystyle subdirectory under Me, there are quite a few of these example files in directories that correspond to the language names.[/quote:2f5rzs60]
Oh, I think I can modify a format for an existing language that Polystyle already supports, like C or Java or HTML.
But I want to add get Polystyle to support a new language that is not on its current list. awk is somwhat like C or Perl, except that it doesn’t need semicolons to end its statements, and it doesn’t use funny symbols to indicate variable names, arrays and the like. awk is a language all its own.
I decided to email the person who maintains Polystyle, and I will report back here on whether my request is do-able or not.
I figured you just make a new subdirectory under polystyle, and copy over the two examples files from another directory and modify for AWK. Then polystyle would see the directory and have that as a new language format.
Of course that "smart a$$" Unix guru response is that you use AWK to format AWK.