eranif / codelite

A multi purpose IDE specialized in C/C++/Rust/Python/PHP and Node.js. Written in C++
https://codelite.org
GNU General Public License v2.0
2.15k stars 459 forks source link

self-closing xhtml tags and indentation #834

Closed heyyoyo closed 5 years ago

heyyoyo commented 9 years ago

When HTML tag is self-closed for example
, we should not indent the next element when using CTRL+i

eranif commented 9 years ago

Can you provide an example of such a file?

heyyoyo commented 9 years ago

Sure simple html :

<!DOCTYPE html>
<html>
<head>
<title>TITLE</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<script type="text/javascript" src="script.js" />
</head>
<body>
</body>
</html>
eranif commented 9 years ago

One problem: the Ctrl-I does not support indenting HTML files, only PHP / C / C++ and Java

heyyoyo commented 9 years ago

Hum I see... PHP could be inserted inside HTML too.

eranif commented 9 years ago

Indeed, in such cases, the indenter skips non PHP sections

On Tue, Jun 23, 2015 at 12:16 PM, heyyoyo notifications@github.com wrote:

Hum I see... PHP could be inserted inside HTML too.

— Reply to this email directly or view it on GitHub https://github.com/eranif/codelite/issues/834#issuecomment-114416519.

Eran Ifrah, Author of codelite, a cross platform open source C/C++ IDE: http://www.codelite.org CodeLite IDE Blog: http://codeliteide.blogspot.com/

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.