gpt4 book ai didi

php - 将 html 文件导入格式为带有缩进和颜色的 HTML 的 <textarea>?

转载 作者:行者123 更新时间:2023-11-30 18:13:11 26 4
gpt4 key购买 nike

我的目标是导入/打开从 HTML 文件到 <textarea> 的任何内容在网页上对用户可见并采用 HTML 格式。

我有以下代码

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><!-- Insert your title here --></title>
</head>
<body>

<!-- start import -->
<textarea>
<html>
<head>
<title><!-- Insert your title here --></title>
</head>
<body>

imported HTML code, imported HTML code, imported HTML code, imported HTML code, imported HTML code, imported HTML code, imported HTML code, imported HTML code, imported HTML code,

</body>
</html>
</textarea>
<!-- End import -->

</body>
</html>

如何将 HTML 文件导入/上传到 <textarea>

如何格式化 <textarea> 中的代码带有颜色、缩进,如 Notepad++、Komodo 等格式化代码。

最佳答案

关于php - 将 html 文件导入格式为带有缩进和颜色的 HTML 的 &lt;textarea&gt;?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14073588/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com