In the case of PHP, it would be ideal if page markup and code could be segregated.
在使用PHP的情况下,如果页面标记和代码能够分离将是十分理想的。
The next two sections will show the most important parts of the markup and code that are required for the interface.
接下来的两个小节将展示最重要的markup部分以及界面所需的代码。
You can see the complete markup and code by downloading the sample projects included with this article and looking at the chart.maker project.
通过下载本文包含的示例项目,并查看chart. maker项目,可以看到完整的markup和代码。
A slight overlap of roles remains, however, in the process of taking the presentation — or markup — designed by the artist and applying it to the content the programmer's code delivers.
然而,在获得图形设计师设计的表示(或标记)并将它应用到程序员代码提供的内容中时,角色之间仍然有一定重复。
An innocuous change to code or markup can wreak havoc, and enhancing the page can require the combined effort of a designer and a programmer.
对代码或标记做出无关紧要的更改会带来严重破坏,并且增强页面可能需要设计人员与程序员的共同努力。
Code would process input, make decisions, and produce data for display, while markup would anticipate the data and provide the scaffolding required to render the information.
代码将处理输入,制定决策并生成显示数据,而标记将期待获得数据并提供所需的支架以渲染信息。
The designer creates markup, using only standard HTML, WML, or whatever language is appropriate, and the developer writes code.
设计师使用标准的HTML、WML或其他合适的语言创建标记,而开发人员编写代码。
In a nutshell, the XML definition of a gadget specifies two mains aspects: the markup of the gadget (HTML code) and a set of preferences.
总而言之,小部件的xml定义指定两个主要方面:小部件的标记(HTML代码)和一组首选项。
Now that the markup part is done, it's time to get down to business and write some code!
现在,标记部分已经完成,应该开始考虑编写一些代码了!
Your JSON document doesn't contain any markup, just the URLs and metadata for the images your JavaScript code turns into a slide show.
我们的JSON文档不包含任何标记,只包含要转换为幻灯片的图像的URL和元数据。
The developer registers handler code for specific events that are triggered by different parts of XML markup (such as start and end tags, text, entities).
XML标记的不同部分(如起始和结束标签、文本、实体)触发特殊的事件,开发人员为这些事件注册处理程序代码。
You register handler code for specific events that are triggered by different parts of XML markup (such as start and end tags, text, and entities).
XML标记的不同部分(如起始和结束标记、文本、实体)触发特殊的事件,然后为这些事件注册处理程序代码。
A Layout is a file containing HTML markup and Cake code.
一个布局是包含HTML标记和CakePHP代码的文件。
First, you can create applications using a combination of MXML markup and ActionScript code.
首先,您可以使用MXML标记和ActionScript代码创建应用程序。
For each of these nodes, it computes the expression in the return clause, which here is a mix of markup (the tags) and code (extracting the contents of the element of each node).
对于选出的每个节点,将在return子句中计算表达式,在这里是标记(标签)与代码(提取出每个节点的元素的内容)的混合。
He claims that the "entire application is implemented in about 35 lines of C# code and 75 lines of XAML page/user-control markup" and "only uses controls and libraries built-into Silverlight".
他在这些教程中中宣称“整个应用程序只用了大概35行C#代码和75行XAML页面/用户控件标记”,并且“只使用了Silverlight内置的控件和函数库”。
This is the optimal design for mobile Web applications, since it allows for all of the code and static markup to be cached on the device, and the user only waits for data from the server.
这是移动Web应用程序的优化设计,因为它允许将所有代码和静态标记缓存到设备上,用户只需等待来自服务器的数据。
You start off with simple JSPs and after a while your Web application is tag soup: a mix mash of JSP tags, HTML markup and server side code.
刚开始,你可能只是写写简单的JSP,过了一阵子你可能就会发现手上的web应用简直就是一锅糊满了tag的汤,粘满了JSPtag、HTML标记以及服务器端代码,稠得捣都捣不开来。
HTML Tidy cleans up HTML code by finding and fixing mistakes in markup.
HTMLTidy会查找并纠正标记中的错误,从而清理HTML。
Likewise, markup subtrees (i.e. "emph", "strong", "module", "code", "title") are collapsed to a single node of the right type, and containing a compound string.
同样,标记子树(即“emph”、“strong”、“module”、“code”和“title”)折叠为一个类型正确的单独节点,并包含一个复合字符串。
This article describes how to solve this problem without redundant source code, markup and configuration.
本文介绍的正是如何在不引入多余源代码、标记和配置的情况下解决此问题。
If performance is very important for a certain JSP and you cannot achieve your goals with generated code, consider writing the markup into the output stream by yourself.
如果性能对于特定JSP非常重要,而使用生成的代码又不能达到目的,请考虑手动将标记编写到输出流中。
While validation isn't a complete testament to code quality, it does help to make sure that your code follows recommended standards and can show you errors in your markup, CSS, and JavaScript.
——有效性并不是代码质量的全部测量标准,但它能保证你的代码按照标准写,也能帮助你发现在书写过程中的错误。
MediaWiki takes advantage of PHP's ability to mix code and HTML markup to give you control over the look and feel of your wiki through the use of skins.
MediaWiki利用了PHP的混合代码功能以及HTMLmarkup来让您能够通过皮肤的使用控制您wiki的观感。
There is an alternative approach: generate HTML (and CSS, if needed) and convert it to RTF using PD4ML. NET. HTML code should be less confusing than RTF markup.
有一个替代的方法:生成HTML(和CSS,如果需要的话),将其转换为RTF使用pd4ml.net。HTML代码要比RTF标记减少困惑。
On copy or cut, partial trust code puts plaintext and Extensible Application Markup Language (XAML) on to the clipboard.
在进行复制或剪下时,部分信任的程序码会将纯文字与可延伸应用程序标记语言(XAML)放在剪贴簿上。
All application code, markup, and UI code is compiled into assemblies.
所有应用程序代码、标记和用户界面代码都将编译为程序集。
Add any markup and controls to the new user control, and add code for any tasks that the user control will perform, such as handling control events or reading data from a data source.
将任何标记和控制项加入至新使用者控制项,并对使用者控制项将执行的工作加入程序码,例如处理控制项事件或从资料来源读取资料。
In general, using embedded code blocks for complex programming logic is not a best practice, because when the code is mixed on the page with markup, it can be difficult to debug and maintain.
一般情况下,将嵌入式代码块用于复杂的编程逻辑并不是最佳做法,因为当页中的代码与标记混合时,很难进行调试和维护。
When you switch back to source view, the design-time control is persisted to the markup source code and edited into the markup for the Web page.
在切换回“源”视图时,设计时控件仍保持为标记源代码,并被编辑到网页的标记中。
应用推荐