Re: HTML Tidy configuration not working

On 2/3/19, me@doomansoltani.com <me@doomansoltani.com> wrote:
> I'm trying to use HTML Tidy with Sublime Text 3, but I don't understand
> how it's supposed to be configured.
>
> I ran a tidy -help-config command to get the list of available config
> options. Then, I tried to use them like this:
>
> tidy index.html --uppercase-attributes yes

the options need to be before the filename

Regards,
Lee

> If I put invalid option there, I get an error, which is good. But if I
> put a correct option, like the one above, it feels like it's just
> ignored. The output is always the same and the warnings are the same as
> well.
>
> I don't expect it to take config with Sublime Text if it doesn't even
> work from the console.
>
> Example:
>
> <!DOCTYPE html>
> <html lang="fa">
> <head>
>      <meta charset="utf-8">
>      <title>دیجیتال مارکتینگ</title>
> </head>
> <body>
>      <input TYPE="text" name="foo">
> </body>
> </html>
> As you can see, I have an input with one attribute lowercased and one
> attribute uppercased. No matter what I do with --uppercase-attributes
> option, the output is always:
>
> Info: Document content looks like HTML5
> No warnings or errors were found.
>
> <!DOCTYPE html>
> <html lang="fa">
> <head>
> <meta name="generator" content=
> "دیجیتال مارکتینگ و بازاریابی دیجیتال">
> <meta charset="utf-8">
> <title>HTML Tidy</title>
> </head>
> <body>
> <input type="text" name="foo">
> </body>
> </html>
> Regards and thanks for your help in Advance; Sincerely yours.
> http://doomansoltani.com/what-is-digital-marketing
> What am I doing wrong? I'm using HTML Tidy 5.6.0 on macOS High Sierra.
>
>

Received on Sunday, 3 February 2019 13:42:14 UTC