我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

以彩色显示文件中的内容

I want to display the content from a file to a Textarea but i want the content to be colorful when displayed in the Textarea..Can anyone tell me how to set colors to the content in the file ??

Suppose I have 2 different files A.txt and B.txt and i want to display content from A.txt in RED and content from B.txt in BLUE in a single text area. Does anyone have an idea about that??

You can only use one color for a textarea's text through CSS.

textarea { 
  color: #f00; }

近期文章

  • 推进逆向工程
  • 在没有jQuery / Ajax的同一个HTML / PHP页面中提交,iFrame是唯一的选择吗?
  • 需要帮助 - 用DB中的数据替换DIV内容而不刷新(使用-jquery,hmlhttp,CI)
  • PHP - 为什么我不能在表格中插入信息?
  • 无法在Wordpress网站上使用Apple-touch-icon(书签的webclip)
  • 使用while循环从PHP中的SQL数组中获取值
  • PHP,从(多)多维数组中获取值
  • 如何单元测试创​​建Zend \ Db \ Sql \ Sql对象的方法?
  • 来自数据库的浮点数错误
  • 单击按钮时用户输入的POST查询
  • 更改服务器后出现.htaccess错误
  • 使用Javascript将值传递给模态弹出窗口
  • 导入sql文件时出现内部服务器错误?
  • 数组获取具有相似值的键
  • too long
  • backbone.js搜索过滤系统[结构]
  • 获取值取决于url [关闭]
  • 将数组插入MYSQL字段
  • 如何清理magento标题
  • PHP实际上并没有执行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华