简体   繁体   English

使用Visual Studio,是否可以在web.sitemap中换行?

[英]Using Visual Studio, is it possible to break lines in web.sitemap?

Using Visual Studio, is it possible to break lines in web.sitemap? 使用Visual Studio,是否可以在web.sitemap中换行?

Most of my web.sitemap roles have many items, and I often have to make adjustments for various reasons. 我的大多数web.sitemap角色都有很多项目,由于种种原因,我经常不得不进行调整。 While I have been able to turn on "word wrap" it is still difficult to scan at times. 虽然我可以打开“自动换行”,但有时仍然很难扫描。

To give you a better idea of what I mean, here is a copy of what I often work with. 为了让您更好地理解我的意思,这里是我经常合作的内容的副本。 It's the comma-delimited list inside the quotes of the roles attribute I'd like to be able to break by hard returns so that I can more easily scan it. 这是我希望能够通过硬性收益打破的roles属性引号内用逗号分隔的列表,以便我可以更轻松地对其进行扫描。

So instead of this, 所以代替这个

<siteMapNode title="1B" roles="ROSE\DM_RMG_Data_Manager,ROSE\DM_RMG_Curriculum,ROSE\DM_RMG_OoS,ROSE\DM_CRA_Principal,ROSE\DM_CRA_Teacher,ROSE\DM_RMG_SPED_Director,ROSE\DM_RMG_SPED_Specialist,ROSE\DM_RMG_SS_Clerk,ROSE\DM_RMG_SS_Manager"
url="http://wales:4886/CRA_Goals/MIA_1b.aspx">

I would like to be able to do this (somehow). 我希望能够(以某种方式)做到这一点。 I have tried the obvious, like actually doing a hard return after each comma, I got a server error. 我已经尝试了显而易见的方法,就像在每次逗号之后进行一次硬返回一样,我遇到了服务器错误。 I did a web search for this literal topic and could find none. 我在网上搜索了这个文字主题,却找不到。 Am I missing something really obvious, or is this not possible for an asp.net website? 我是否确实遗漏了一些明显的内容,或者asp.net网站无法做到这一点?

Thank you for any insight. 感谢您的见解。

<siteMapNode 
   title="1B" 
   roles="ROSE\DM_RMG_Data_Manager,
          ROSE\DM_RMG_Curriculum, 
          ROSE\DM_RMG_OoS,
          [and so on]

It looks like I didn't find any answer online because I was being too specific in my choice of question. 我似乎在网上找不到任何答案,因为我对问题的选择过于具体。 What I should have asked was "How can I continue a string to the next line?" 我应该问的是“如何继续字符串到下一行?”

If I add " _" to the end of each line (except for the final line of the string), I don't cause any debug errors. 如果在每行的末尾添加“ _”(字符串的最后一行除外),则不会引起任何调试错误。

<siteMapNode 
title="1B" 
roles="ROSE\DM_RMG_Data_Manager _,
ROSE\DM_RMG_Curriculum _, 
ROSE\DM_RMG_OoS _,
[and so on]

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

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