简体   繁体   English

原子中的代码在html中显示不同的颜色

[英]code in atom showing different color in html

i am building a website using HTML and PHP. 我正在使用HTML和PHP建立网站。

just trying sample code below: 只是尝试下面的示例代码:

 <span align="justify" class="lead" style="color:red;">Our ability to address urgency makes us special</span></span> <p align="justify" class="mb-20">Being the most renowned <b>event organizers in Hyderabad</b>, we understand it well that mood to make some party doesn't come with prior notices. It is the enthusiasm that transforms into happiness through the party at that moment. And, once that moment passes, the enthusiasm level doesn't remain the same. We at booktheparty.in thoroughly understand the sudden exuberance to party hard well. </p> </div> </div> </div> </div> <div class="col-md-6 wow fadeInLeft" data-wow-duration="1s" data-wow-delay="0.6s"> <div class="pr-40"> <h3 class="text-uppercase title">&nbsp;<br />&nbsp;</h3> <div class="row" style="margin-top:-7px;"> <div class="col-sm-12 col-md-12 mb-sm-20 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.5s"> <br> 

the original color when we type codes in the editor is like in the below image, 我们在编辑器中键入代码时的原始颜色如下图所示, 在此处输入图片说明

in one page its showing differently, i dnt know what went wrong 在一页显示中有所不同,我不知道出了什么问题 在此处输入图片说明

can anyone tell me what could be wrong or is it fine? 谁能告诉我什么地方可能出问题了吗?

To me it looks like you're missing a closing quote somewhere. 在我看来,您似乎在某处缺少一个结束语。 This is because everything between quotes is orange, where as with the correct code, the orange part is before the quotes. 这是因为引号之间的所有内容均为橙色,其中与正确的代码一样,橙色部分位于引号之前。

Try scrolling back up and seeing where it starts going green, that's where you're missing a quote. 尝试向上滚动并查看它开始变成绿色的地方,那是您缺少报价的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM