关注X++的博客园博友有福啦,现在发布X++代码也同样可以实现语法高亮。目前仅支持SyntaxHighlighter插件。请看如下:
public void update(boolean _updateParty = true, boolean _updateContactPersonLastEdit = true) {Address addressOrig = this.orig();ttsbegin;if (_updateParty && this.AddrTableId == tablenum(DirPartyTable)){DirParty::updatePartyFromCommon(DirPartyTable::findRec(this.AddrRecId).PartyId,this);}super();if (_updateParty && (addressOrig.AddrTableId && this.AddrTableId&& this.AddrTableId != addressOrig.AddrTableId)&& !(addressOrig.AddrTableId == tablenum(DirPartyTable) || confind(DirParty::tableList(), addressOrig.AddrTableId))){DirPartyAddress::insertPartyAddressRelationship(this,false);}if (_updateContactPersonLastEdit){this.updateContactPersonLastEdit();}ttscommit; }
使用方法如下:
安装正常的操作过程,使用SyntaxHighlighter插件插入高亮代码块:
在弹出的对话框中,“编程语言”随便选哪个都可以。我选择的是默认的“C#”,在贴入代码以后,打开HTML编辑视图,直接将HTML中的“<pre class="brush:csharp">”改为“<pre class="brush:xpp">”即可。如下:
Enjoy!