aandrew-me / tgpt

AI Chatbots in terminal without needing API keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help to correctly display codes.

sinuso opened this issue · comments

Is there a way to correctly display the result when asked for a code?

These are the results

$ tgpt "Write an example html code."
Write an example html code.

<!DOCTYPE html><html><head><title>Example HTML Code</title></head><body><h1>Hello, World!</h1><p>This is an example HTML code.</p><ul>  <li>Item 1</li>  <li>Item 2</li>
  <li>Item 3</li></ul></body></html>
$ tgpt -q "Write an example html code."
<!DOCTYPE html><html><head><title>My Example HTML Page</title></head><body><h1>Welcome to my example HTML page!</h1><p>This is a paragraph of text.</p><ul>  <li>Item 1</li>  <li>Item 2</li>  <li>Item 3</li></ul><img src="example.jpg" alt="Example Image"><a href="https://www.example.com">Visit Example Website</a></body></html>
$ tgpt -c "Write an example html code."
<!DOCTYPE html><html><head><title>Example HTML Code</title></head><body><h1>This is a heading</h1><p>This is a paragraph.</p></body></html>