3***@qq.com
3***@qq.com
  • 发布:2022-04-28 14:48
  • 更新:2022-04-28 15:59
  • 阅读:822

【报Bug】vue代码没有高亮显示

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 1909

HBuilderX版本号: 3.4.7

操作步骤:

代码中间加了行注释,注释下方代码无发高亮显示,把注释去掉下方代码显示正常

预期结果:

代码高亮显示

实际结果:

显示异常

bug描述:

无高亮显示,一片灰色

2022-04-28 14:48 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

感谢反馈,我们验证一下。

如果方便,提供下出错的文件。

  • 1***@qq.com

    我提供一下我亮灰的

    <image src="data:img/jpg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/2wBDAAcFBQYFBAcGBgYIBwcICxILCwoKCxYPEA0SGhYbGhkWGRgcICgiHB4mHhgZIzAkJiorLS4tGyIyNTEsNSgsLSz/2wBDAQcICAsJCxULCxUsHRkdLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCwsLCz/wAARCACEAIQDASIAAhEBAxEB/8QAHAAAAQUBAQEAAAAAAAAAAAAABQACAwQGAQcI/8QAPRAAAgEDAwEECAQFAwMFAAAAAQIDAAQRBRIhMQYTQVEUIjJhcYGRoQdCscEVI1Ji0TNy4RZFY4KDkpPw/8QAGgEAAgMBAQAAAAAAAAAAAAAAAgMBBAUGAP/EACoRAAICAgIBAwQBBQEAAAAAAAABAgMEERIhMQVBURMUIjJhFSNCcYHw/9oADAMBAAIRAxEAPwDSC6HIZJAB/VLn9BThdgDHdIfi70K9LirpvUxxWosD5kYj9U1/iFBfSKPVigB+ZqQ6jMwOFhX/ANBNBDfLnpTDfeQpn2EF5bFf1SxvUYr2DD390c+uigf+MVSuO0FxHG22YsV5wqgVlNW7TzxK6wwKVGVySd326VlVmktW79GkV+rc8/A+dUrI0xeltmpTLImty0jR6z+IOrFCtu80MXslxzz558KN6P2sfU7Dv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4taXO1wjnjwNehdjrkehSwr6xV9zKTwcj/irUox4bRQjKat1I2vps847mEnaelQJDcd08ix94RnaM4Hu+NENO1SzRQJITD9wadpgj1XtElpDLtU5LqDyqDrjPx8/8UlvRGVTZbHUEVrKG6t4e8uyqPMMrEDudVwWDnHGCD1+FU9V1JbS0a1jtpJLu3LSySKNwj3HgOPD8viMZx14qfVtV7rX8KFht4pizAN6wCkEADjwz9aFxX9tZ3V5LBdytBfzYVhEVDjORuBA8yOOOaVKT86HV4lcXJv3WmyK11uaO1SVo/SHBw3eJ6oY7j05GOmBz0PlU2ldqo49S9Nv7aPuIl293CgCupRhyDwQciotQa/luby+lgJS6xErgDllKkY8cgL19/vohpfZ26JKW2l3k4kU/zHURjPOOT0GcdPvUOcUtsP7bj+i32v8A3+irp+sR6zbySQxvFFHKVVHbcVHBHPj1x86JTXTCIRxgl8eHhV7TOwGrQTz7ha28D4KgOWbPU5GPfjOecUYi7ICMES3PJ4O1BVZ5NS9y8qZv3PEL2bvdUuWJ6yMB9KpuSZCPKvaIfwn0BDmR72dicndKBn6AVfj/AA37MRnP8NLt0y8zn96Q8uCGLGkzwJiT1HTxrqlw4IHFfQidhezcfTSLfjzBP61IOxugL7OkWY/9oV779L2PfaN+54LGMrnFKve/+kdEH/a7T/6UpUP30fg99m/k+VpVDDvMbWJ8KIWUhu42inVZFUcEjkfOlSrUZXKl9bRwspTIz4Zre/h0BLpN4zD1lkAB8elKlTV+pWmu0bnT1V8owDA+dDtX06GTVbNVaSEs+0tE21sYPhSpVKbXg8zHd/MvaKWzeVpY+827pOWPyr23T+zWmXFvFLLAXKDAG4gD6dPD6GlSpHqjahHRZxUm3s0NvYWtsmILeOIZzhVAq1GOaVKuZbb8mykiZRkcVFIi4PFKlQkEGAKZ4mlSpj8HiMk5p4pUqFnmKlSpVB4//9k="></image>

    2022-04-28 15:26

  • 1***@qq.com

    搞base64进去 直接整个组件亮灰色

    用command+K格式化 src项会换到第二行, image不亮灰

    2022-04-28 15:27

  • 1***@qq.com

    楼主发的问题我知道是什么原因 不需要他发文件,<!--正常--> <!---不正常--->,只要-超过两个后面的代码全部亮灰

    2022-04-28 15:29

1***@qq.com

1***@qq.com

哈哈哈,hb的提示功能真的需要好好研究一下了,我今天也遇见了这种问题,uniapp项目 image组件src项 我复制了一段base64进去,image整个组件直接亮灰色,我还以为出错了 结果正常运行,然后用一下command+K 格式化代码,就正常了!

1***@qq.com

1***@qq.com

用<!-- --> 就可以了,--符号只能是两个,不是两个就会亮灰色, 我前几天就发现了

1***@qq.com

1***@qq.com

我测试出来了,《!-- 问答社区不能用<+! 前面代替了,-这个符号只能是双数,也就是2-4-6-8 只要-这个符号是单数 就会出现楼主的问题

DCloud_HB_WDL

DCloud_HB_WDL

注释,你为什么不用两个-

  • 3***@qq.com (作者)

    这块代码是我同事写的,他用的VSCode没事,我拉取他的代码在HBuilderX中出现了这个问题

    2022-04-29 09:01

该问题目前已经被锁定, 无法添加新回复