|
Dave Clemmer wrote: the highlighting rules can change significantly during run time
Oh boy.
Dave Clemmer wrote: What format would you like these rules?
The AvalonEdit syntax is similar to our own (sorta-kinda) so that's fine. Even just a text document outlining the keywords, comment and string delimiters and anything funky I need to be careful of will do.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
The language I'm particularly interested in formatting is Mo+, and a typical AvalonEdit syntax definition looks like the blurb below. Basically, there are tag groups beginning with <%%-, <%%:, <%%=, or <%%> and ending with %%> that are highlighted similar to ASP.Net. Anything between <%%- and %%> is DarkOrange, anything between <%%> and %%> is Magenta, and other rules are listed below.
<?xml version="1.0"?>
<SyntaxDefinition name="Content Highlighting" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Comment" foreground="DarkGreen" />
<Color name="Phrase" foreground="DarkOrange" />
<Color name="Evaluation" foreground="Brown" />
<Color name="EvaluationRecognized" foreground="Blue" />
<Color name="ContentProperty" foreground="Brown" />
<Color name="ContentPropertyRecognized" foreground="Teal" />
<Color name="DebugStatement" foreground="Red" />
<Color name="OutputProperty" foreground="Magenta" />
<Color name="OutputStatement" foreground="Magenta" />
<Color name="Symbol" fontWeight="bold" foreground="Gray" background="Yellow" />
<Color name="Literal" foreground="SlateBlue" />
<Color name="Method" foreground="Chocolate" />
<Color name="Property" foreground="Teal" />
<!-- Content ruleset. -->
<RuleSet>
<Span color="Comment" begin="//" />
<Span color="Comment" multiline="true" begin="/\*" end="\*/" />
<Span color="ContentProperty" multiline="true">
<Begin color="Symbol"><%%=</Begin>
<End color="Symbol">%%></End>
<RuleSet>
<Keywords color="ContentPropertyRecognized">
<Word>Solution</Word>
<Word>Project</Word>
<Word>AuditProperty</Word>
<Word>Collection</Word>
<Word>Entity</Word>
<Word>EntityReference</Word>
<Word>ReferencedEntity</Word>
<Word>ReferencedProperty</Word>
<Word>Feature</Word>
<Word>Index</Word>
<Word>IndexProperty</Word>
<Word>Method</Word>
<Word>Parameter</Word>
<Word>PropertyReference</Word>
<Word>Relationship</Word>
<Word>RelationshipProperty</Word>
<Word>BaseEntity</Word>
<Word>Property</Word>
<Word>PropertyRelationship</Word>
<Word>MethodRelationship</Word>
<Word>Workflow</Word>
<Word>Stage</Word>
<Word>StageTransition</Word>
<Word>Step</Word>
<Word>StepTransition</Word>
<Word>State</Word>
<Word>StateTransition</Word>
<Word>StateModel</Word>
<Word>CurrentStateModel</Word>
<Word>CurrentWorkflow</Word>
<Word>CurrentStage</Word>
<Word>CurrentStageTransition</Word>
<Word>CurrentStep</Word>
<Word>CurrentStepTransition</Word>
<Word>CurrentState</Word>
<Word>CurrentStateTransition</Word>
<Word>CurrentAuditProperty</Word>
<Word>CurrentCollection</Word>
<Word>CurrentEntity</Word>
<Word>CurrentEntityReference</Word>
<Word>CurrentFeature</Word>
<Word>CurrentIndex</Word>
<Word>CurrentIndexProperty</Word>
<Word>CurrentMethod</Word>
<Word>CurrentMethodRelationship</Word>
<Word>CurrentParameter</Word>
<Word>CurrentProject</Word>
<Word>CurrentProperty</Word>
<Word>CurrentPropertyReference</Word>
<Word>CurrentPropertyRelationship</Word>
<Word>CurrentRelationship</Word>
<Word>CurrentRelationshipProperty</Word>
<Word>CurrentSqlColumn</Word>
<Word>CurrentSqlDatabase</Word>
<Word>CurrentSqlExtendedProperty</Word>
<Word>CurrentSqlForeignKey</Word>
<Word>CurrentSqlForeignKeyColumn</Word>
<Word>CurrentSqlIndex</Word>
<Word>CurrentSqlIndexedColumn</Word>
<Word>CurrentSqlProperty</Word>
<Word>CurrentSqlTable</Word>
<Word>SqlColumn</Word>
<Word>SqlDatabase</Word>
<Word>SqlExtendedProperty</Word>
<Word>SqlForeignKey</Word>
<Word>SqlForeignKeyColumn</Word>
<Word>EntityReferences</Word>
<Word>SqlIndex</Word>
<Word>SqlIndexedColumn</Word>
<Word>SqlProperty</Word>
<Word>SqlTable</Word>
<Word>SolutionName</Word>
<Word>Copyright</Word>
<Word>Description</Word>
<Word>CompanyName</Word>
<Word>ProductName</Word>
<Word>ProductVersion</Word>
<Word>SolutionDirectory</Word>
<Word>ProjectName</Word>
<Word>Namespace</Word>
<Word>DbServerName</Word>
<Word>DbName</Word>
<Word>FeatureName</Word>
<Word>EntityName</Word>
<Word>DbSchema</Word>
<Word>SourceName</Word>
<Word>PluralEntityName</Word>
<Word>PropertyName</Word>
<Word>DataTypeCode</Word>
<Word>DataTypeName</Word>
<Word>IdentifierTypeCode</Word>
<Word>IdentifierTypeName</Word>
<Word>EntityTypeCode</Word>
<Word>EntityTypeName</Word>
<Word>IsAddAuditProperty</Word>
<Word>IsUpdateAuditProperty</Word>
<Word>IsValueGenerated</Word>
<Word>IsPrimaryKeyMember</Word>
<Word>IsForeignKeyMember</Word>
<Word>Count</Word>
<Word>Precision</Word>
<Word>Scale</Word>
<Word>ItemsMin</Word>
<Word>ItemsMax</Word>
<Word>ReferencedItemsMin</Word>
<Word>ReferencedItemsMax</Word>
<Word>DatabaseTypeCode</Word>
<Word>DatabaseTypeName</Word>
<Word>UserName</Word>
<Word>Password</Word>
<Word>InitialValue</Word>
<Word>IsNullable</Word>
<Word>Order</Word>
<Word>CollectionName</Word>
<Word>PropertyReferenceName</Word>
<Word>EntityReferenceName</Word>
<Word>MethodName</Word>
<Word>MethodTypeCode</Word>
<Word>MethodTypeName</Word>
<Word>ParameterName</Word>
<Word>IndexName</Word>
<Word>IsPrimaryKeyIndex</Word>
<Word>IsUniqueIndex</Word>
<Word>RelationshipName</Word>
<Word>SolutionID</Word>
<Word>ProjectID</Word>
<Word>EntityID</Word>
<Word>BaseEntityID</Word>
<Word>FeatureID</Word>
<Word>ReferencedEntityID</Word>
<Word>PropertyID</Word>
<Word>ReferencedPropertyID</Word>
<Word>MethodID</Word>
<Word>ParameterID</Word>
<Word>IndexID</Word>
<Word>RelationshipID</Word>
<Word>StateModelName</Word>
<Word>StateName</Word>
<Word>StateTransitionName</Word>
<Word>WorkflowName</Word>
<Word>StageName</Word>
<Word>StageTransitionName</Word>
<Word>StepName</Word>
<Word>StepTransitionName</Word>
<Word>StateModelID</Word>
<Word>StateID</Word>
<Word>StateTransitionID</Word>
<Word>FromStateID</Word>
<Word>ToStateID</Word>
<Word>WorkflowID</Word>
<Word>StageID</Word>
<Word>StageTransitionID</Word>
<Word>FromStageID</Word>
<Word>ToStageID</Word>
<Word>StepID</Word>
<Word>StepTransitionID</Word>
<Word>FromStepID</Word>
<Word>ToStepID</Word>
<Word>Template</Word>
<Word>Tag</Word>
<Word>Tags</Word>
<Word>TagName</Word>
<Word>ParameterCount</Word>
<Word>PropertyReferenceCount</Word>
<Word>PropertyCount</Word>
<Word>CollectionCount</Word>
<Word>EntityReferenceCount</Word>
<Word>MethodCount</Word>
<Word>EntityCount</Word>
<Word>SqlTableCount</Word>
<Word>IsAuditProperty</Word>
<Word>IsBaseProperty</Word>
<Word>DefaultSourceName</Word>
<Word>OriginalName</Word>
<Word>IsAutoUpdated</Word>
<Word>ProjectReferenceCount</Word>
<Word>ProjectCount</Word>
<Word>SqlDatabaseID</Word>
<Word>SqlTableID</Word>
<Word>SqlColumnID</Word>
<Word>SqlIndexID</Word>
<Word>SqlIndexedColumnID</Word>
<Word>SqlForeignKeyID</Word>
<Word>SqlForeignKeyColumnID</Word>
<Word>SqlPropertyID</Word>
<Word>SqlExtendedPropertyID</Word>
<Word>SqlColumnName</Word>
<Word>DbID</Word>
<Word>DataType</Word>
<Word>MaximumLength</Word>
<Word>NumericPrecision</Word>
<Word>NumericScale</Word>
<Word>Default</Word>
<Word>DefaultSchema</Word>
<Word>IsFullTextIndexed</Word>
<Word>IsForeignKey</Word>
<Word>InPrimaryKey</Word>
<Word>PrimaryKeyColumnCount</Word>
<Word>ForeignKeyColumnCount</Word>
<Word>PrimaryAndForeignKeyColumnCount</Word>
<Word>Nullable</Word>
<Word>Identity</Word>
<Word>IdentitySeed</Word>
<Word>IdentityIncrement</Word>
<Word>Urn</Word>
<Word>State</Word>
<Word>SqlTableName</Word>
<Word>CreateDate</Word>
<Word>DateLastModified</Word>
<Word>SqlDatabaseName</Word>
<Word>Owner</Word>
<Word>PrimaryFilePath</Word>
<Word>DefaultFileGroup</Word>
<Word>DefaultFullTextCatalog</Word>
<Word>Status</Word>
<Word>UserName</Word>
<Word>SqlExtendedPropertyName</Word>
<Word>Value</Word>
<Word>SqlForeignKeyName</Word>
<Word>ReferencedKey</Word>
<Word>ReferencedTable</Word>
<Word>ReferencedTableSchema</Word>
<Word>IsChecked</Word>
<Word>IsSystemNamed</Word>
<Word>SqlForeignKeyColumnName</Word>
<Word>ReferencedColumn</Word>
<Word>SqlIndexName</Word>
<Word>IsClustered</Word>
<Word>IsUnique</Word>
<Word>IsXmlIndex</Word>
<Word>IsFullTextKey</Word>
<Word>FileGroup</Word>
<Word>SqlIndexedColumnName</Word>
<Word>IsIncluded</Word>
<Word>IsComputed</Word>
<Word>Descending</Word>
<Word>SqlPropertyName</Word>
<Word>Type</Word>
<Word>Schema</Word>
<Word>ItemIndex</Word>
<Word>Text</Word>
<Word>Path</Word>
<Word>LibraryDirectory</Word>
<Word>IsRelatedToProperty</Word>
<Word>EntityAndBaseEntities</Word>
<Word>BaseAndEntityEntities</Word>
<Word>PathRelationships</Word>
<Word>ExtendingEntities</Word>
<Word>Record</Word>
<Word>UnderscoreCase</Word>
<Word>CamelCase</Word>
<Word>Find</Word>
<Word>FindAll</Word>
<Word>Substring</Word>
<Word>Replace</Word>
<Word>ToLower</Word>
<Word>ToUpper</Word>
<Word>StartsWith</Word>
<Word>EndsWith</Word>
<Word>IndexOf</Word>
<Word>Contains</Word>
<Word>Length</Word>
<Word>Column</Word>
<Word>Filter</Word>
<Word>FilterProtected</Word>
<Word>FilterIgnored</Word>
<Word>File</Word>
<Word>FileExists</Word>
<Word>Trim</Word>
<Word>TrimStart</Word>
<Word>TrimEnd</Word>
<Word>RegexIsMatch</Word>
<Word>RegexReplace</Word>
<Word>LogValue</Word>
<Word>HasPropertyNamed</Word>
<Word>ItemFile</Word>
<Word>ItemPath</Word>
<Word>.</Word>
<Word>+</Word>
<Word>-</Word>
<Word>*</Word>
<Word>/</Word>
</Keywords>
<Keywords color="Method">
<Word>TAB</Word>
<Word>TABSTRING</Word>
<Word>USEPROTECTEDAREAS</Word>
<Word>PROTECTEDAREASTART</Word>
<Word>PROTECTEDAREAEND</Word>
<Word>USEIGNOREDAREAS</Word>
<Word>IGNOREDAREASTART</Word>
<Word>IGNOREDAREAEND</Word>
<Word>USETABS</Word>
<Word>NOW</Word>
<Word>USER</Word>
</Keywords>
</RuleSet>
</Span>
<Span color="OutputProperty" multiline="true">
<Begin color="Symbol"><%%></Begin>
<End color="Symbol">%%></End>
</Span>
<Span color="Phrase" multiline="true">
<Begin color="Symbol"><%%-</Begin>
<End color="Symbol">%%></End>
</Span>
<Span color="Evaluation" multiline="true" >
<Begin color="Symbol"><%%:</Begin>
<End color="Symbol">%%></End>
<RuleSet>
<Keywords color="Property">
<Word>Solution</Word>
<Word>Project</Word>
<Word>AuditProperty</Word>
<Word>Collection</Word>
<Word>Entity</Word>
<Word>EntityReference</Word>
<Word>ReferencedEntity</Word>
<Word>ReferencedProperty</Word>
<Word>Feature</Word>
<Word>Index</Word>
<Word>IndexProperty</Word>
<Word>Method</Word>
<Word>Parameter</Word>
<Word>PropertyReference</Word>
<Word>Relationship</Word>
<Word>RelationshipProperty</Word>
<Word>BaseEntity</Word>
<Word>Property</Word>
<Word>PropertyRelationship</Word>
<Word>MethodRelationship</Word>
<Word>Workflow</Word>
<Word>Stage</Word>
<Word>StageTransition</Word>
<Word>Step</Word>
<Word>StepTransition</Word>
<Word>State</Word>
<Word>StateTransition</Word>
<Word>StateModel</Word>
<Word>CurrentStateModel</Word>
<Word>CurrentWorkflow</Word>
<Word>CurrentStage</Word>
<Word>CurrentStageTransition</Word>
<Word>CurrentStep</Word>
<Word>CurrentStepTransition</Word>
<Word>CurrentState</Word>
<Word>CurrentStateTransition</Word>
<Word>CurrentAuditProperty</Word>
<Word>CurrentCollection</Word>
<Word>CurrentEntity</Word>
<Word>CurrentEntityReference</Word>
<Word>CurrentFeature</Word>
<Word>CurrentIndex</Word>
<Word>CurrentIndexProperty</Word>
<Word>CurrentMethod</Word>
<Word>CurrentMethodRelationship</Word>
<Word>CurrentParameter</Word>
<Word>CurrentProject</Word>
<Word>CurrentProperty</Word>
<Word>CurrentPropertyReference</Word>
<Word>CurrentPropertyRelationship</Word>
<Word>CurrentRelationship</Word>
<Word>CurrentRelationshipProperty</Word>
<Word>CurrentSqlColumn</Word>
<Word>CurrentSqlDatabase</Word>
<Word>CurrentSqlExtendedProperty</Word>
<Word>CurrentSqlForeignKey</Word>
<Word>CurrentSqlForeignKeyColumn</Word>
<Word>CurrentSqlIndex</Word>
<Word>CurrentSqlIndexedColumn</Word>
<Word>CurrentSqlProperty</Word>
<Word>CurrentSqlTable</Word>
<Word>SqlColumn</Word>
<Word>SqlDatabase</Word>
<Word>SqlExtendedProperty</Word>
<Word>SqlForeignKey</Word>
<Word>SqlForeignKeyColumn</Word>
<Word>EntityReferences</Word>
<Word>SqlIndex</Word>
<Word>SqlIndexedColumn</Word>
<Word>SqlProperty</Word>
<Word>SqlTable</Word>
<Word>SolutionName</Word>
<Word>Copyright</Word>
<Word>Description</Word>
<Word>CompanyName</Word>
<Word>ProductName</Word>
<Word>ProductVersion</Word>
<Word>SolutionDirectory</Word>
<Word>ProjectName</Word>
<Word>Namespace</Word>
<Word>DbServerName</Word>
<Word>DbName</Word>
<Word>FeatureName</Word>
<Word>EntityName</Word>
<Word>DbSchema</Word>
<Word>SourceName</Word>
<Word>PluralEntityName</Word>
<Word>PropertyName</Word>
<Word>DataTypeCode</Word>
<Word>DataTypeName</Word>
<Word>IdentifierTypeCode</Word>
<Word>IdentifierTypeName</Word>
<Word>EntityTypeCode</Word>
<Word>EntityTypeName</Word>
<Word>IsAddAuditProperty</Word>
<Word>IsUpdateAuditProperty</Word>
<Word>IsValueGenerated</Word>
<Word>IsPrimaryKeyMember</Word>
<Word>IsForeignKeyMember</Word>
<Word>Count</Word>
<Word>Precision</Word>
<Word>Scale</Word>
<Word>ItemsMin</Word>
<Word>ItemsMax</Word>
<Word>ReferencedItemsMin</Word>
<Word>ReferencedItemsMax</Word>
<Word>DatabaseTypeCode</Word>
<Word>DatabaseTypeName</Word>
<Word>UserName</Word>
<Word>Password</Word>
<Word>InitialValue</Word>
<Word>IsNullable</Word>
<Word>Order</Word>
<Word>CollectionName</Word>
<Word>PropertyReferenceName</Word>
<Word>EntityReferenceName</Word>
<Word>MethodName</Word>
<Word>MethodTypeCode</Word>
<Word>MethodTypeName</Word>
<Word>ParameterName</Word>
<Word>IndexName</Word>
<Word>IsPrimaryKeyIndex</Word>
<Word>IsUniqueIndex</Word>
<Word>RelationshipName</Word>
<Word>SolutionID</Word>
<Word>ProjectID</Word>
<Word>EntityID</Word>
<Word>BaseEntityID</Word>
<Word>FeatureID</Word>
<Word>ReferencedEntityID</Word>
<Word>PropertyID</Word>
<Word>ReferencedPropertyID</Word>
<Word>MethodID</Word>
<Word>ParameterID</Word>
<Word>IndexID</Word>
<Word>RelationshipID</Word>
<Word>StateModelName</Word>
<Word>StateName</Word>
<Word>StateTransitionName</Word>
<Word>WorkflowName</Word>
<Word>StageName</Word>
<Word>StageTransitionName</Word>
<Word>StepName</Word>
<Word>StepTransitionName</Word>
<Word>StateModelID</Word>
<Word>StateID</Word>
<Word>StateTransitionID</Word>
<Word>FromStateID</Word>
<Word>ToStateID</Word>
<Word>WorkflowID</Word>
<Word>StageID</Word>
<Word>StageTransitionID</Word>
<Word>FromStageID</Word>
<Word>ToStageID</Word>
<Word>StepID</Word>
<Word>StepTransitionID</Word>
<Word>FromStepID</Word>
<Word>ToStepID</Word>
<Word>Template</Word>
<Word>Tag</Word>
<Word>Tags</Word>
<Word>TagName</Word>
<Word>ParameterCount</Word>
<Word>PropertyReferenceCount</Word>
<Word>PropertyCount</Word>
<Word>CollectionCount</Word>
<Word>EntityReferenceCount</Word>
<Word>MethodCount</Word>
<Word>EntityCount</Word>
<Word>SqlTableCount</Word>
<Word>IsAuditProperty</Word>
<Word>IsBaseProperty</Word>
<Word>DefaultSourceName</Word>
<Word>OriginalName</Word>
<Word>IsAutoUpdated</Word>
<Word>ProjectReferenceCount</Word>
<Word>ProjectCount</Word>
<Word>SqlDatabaseID</Word>
<Word>SqlTableID</Word>
<Word>SqlColumnID</Word>
<Word>SqlIndexID</Word>
<Word>SqlIndexedColumnID</Word>
<Word>SqlForeignKeyID</Word>
<Word>SqlForeignKeyColumnID</Word>
<Word>SqlPropertyID</Word>
<Word>SqlExtendedPropertyID</Word>
<Word>SqlColumnName</Word>
<Word>DbID</Word>
<Word>DataType</Word>
<Word>MaximumLength</Word>
<Word>NumericPrecision</Word>
<Word>NumericScale</Word>
<Word>Default</Word>
<Word>DefaultSchema</Word>
<Word>IsFullTextIndexed</Word>
<Word>IsForeignKey</Word>
<Word>InPrimaryKey</Word>
<Word>PrimaryKeyColumnCount</Word>
<Word>ForeignKeyColumnCount</Word>
<Word>PrimaryAndForeignKeyColumnCount</Word>
<Word>Nullable</Word>
<Word>Identity</Word>
<Word>IdentitySeed</Word>
<Word>IdentityIncrement</Word>
<Word>Urn</Word>
<Word>State</Word>
<Word>SqlTableName</Word>
<Word>CreateDate</Word>
<Word>DateLastModified</Word>
<Word>SqlDatabaseName</Word>
<Word>Owner</Word>
<Word>PrimaryFilePath</Word>
<Word>DefaultFileGroup</Word>
<Word>DefaultFullTextCatalog</Word>
<Word>Status</Word>
<Word>UserName</Word>
<Word>SqlExtendedPropertyName</Word>
<Word>Value</Word>
<Word>SqlForeignKeyName</Word>
<Word>ReferencedKey</Word>
<Word>ReferencedTable</Word>
<Word>ReferencedTableSchema</Word>
<Word>IsChecked</Word>
<Word>IsSystemNamed</Word>
<Word>SqlForeignKeyColumnName</Word>
<Word>ReferencedColumn</Word>
<Word>SqlIndexName</Word>
<Word>IsClustered</Word>
<Word>IsUnique</Word>
<Word>IsXmlIndex</Word>
<Word>IsFullTextKey</Word>
<Word>FileGroup</Word>
<Word>SqlIndexedColumnName</Word>
<Word>IsIncluded</Word>
<Word>IsComputed</Word>
<Word>Descending</Word>
<Word>SqlPropertyName</Word>
<Word>Type</Word>
<Word>Schema</Word>
<Word>ItemIndex</Word>
<Word>Text</Word>
<Word>Path</Word>
<Word>LibraryDirectory</Word>
<Word>IsRelatedToProperty</Word>
<Word>EntityAndBaseEntities</Word>
<Word>BaseAndEntityEntities</Word>
<Word>PathRelationships</Word>
<Word>ExtendingEntities</Word>
<Word>Record</Word>
<Word>UnderscoreCase</Word>
<Word>CamelCase</Word>
<Word>Find</Word>
<Word>FindAll</Word>
<Word>Substring</Word>
<Word>Replace</Word>
<Word>ToLower</Word>
<Word>ToUpper</Word>
<Word>StartsWith</Word>
<Word>EndsWith</Word>
<Word>IndexOf</Word>
<Word>Contains</Word>
<Word>Length</Word>
<Word>Column</Word>
<Word>Filter</Word>
<Word>FilterProtected</Word>
<Word>FilterIgnored</Word>
<Word>File</Word>
<Word>FileExists</Word>
<Word>Trim</Word>
<Word>TrimStart</Word>
<Word>TrimEnd</Word>
<Word>RegexIsMatch</Word>
<Word>RegexReplace</Word>
<Word>LogValue</Word>
<Word>HasPropertyNamed</Word>
<Word>ItemFile</Word>
<Word>ItemPath</Word>
<Word>.</Word>
<Word>+</Word>
<Word>-</Word>
<Word>*</Word>
<Word>/</Word>
</Keywords>
<Keywords color="Method">
<Word>TAB</Word>
<Word>TABSTRING</Word>
<Word>USEPROTECTEDAREAS</Word>
<Word>PROTECTEDAREASTART</Word>
<Word>PROTECTEDAREAEND</Word>
<Word>USEIGNOREDAREAS</Word>
<Word>IGNOREDAREASTART</Word>
<Word>IGNOREDAREAEND</Word>
<Word>USETABS</Word>
<Word>NOW</Word>
<Word>USER</Word>
</Keywords>
<Keywords color="DebugStatement">
<Word>debug</Word>
<Word>trace</Word>
</Keywords>
<Keywords color="OutputStatement">
<Word>update</Word>
<Word>delete</Word>
<Word>remove</Word>
<Word>insert</Word>
</Keywords>
<Keywords color="EvaluationRecognized">
<Word>if</Word>
<Word>foreach</Word>
<Word>while</Word>
<Word>in</Word>
<Word>where</Word>
<Word>limit</Word>
<Word>sort</Word>
<Word>asc</Word>
<Word>desc</Word>
<Word>with</Word>
<Word>from</Word>
<Word>else</Word>
<Word>switch</Word>
<Word>case</Word>
<Word>default</Word>
<Word>break</Word>
<Word>clear</Word>
<Word>return</Word>
<Word>var</Word>
<Word>param</Word>
<Word>log</Word>
<Word>forfiles</Word>
<Word>progress</Word>
<Word>.</Word>
<Word>+</Word>
<Word>-</Word>
<Word>*</Word>
<Word>/</Word>
<Word>,</Word>
<Word>:</Word>
<Word>(</Word>
<Word>)</Word>
<Word>{</Word>
<Word>}</Word>
<Word>=</Word>
<Word>!</Word>
<Word>|</Word>
<Word>&</Word>
<Word>></Word>
<Word><</Word>
</Keywords>
<Span color="Comment" begin="//" />
<Span color="Comment" multiline="true" begin="/\*" end="\*/" />
<Span color="ContentProperty" multiline="true">
<Begin color="Symbol"><%%=</Begin>
<End color="Symbol">%%></End>
<RuleSet>
<Keywords color="ContentPropertyRecognized">
<Word>Solution</Word>
<Word>Project</Word>
<Word>AuditProperty</Word>
<Word>Collection</Word>
<Word>Entity</Word>
<Word>EntityReference</Word>
<Word>ReferencedEntity</Word>
<Word>ReferencedProperty</Word>
<Word>Feature</Word>
<Word>Index</Word>
<Word>IndexProperty</Word>
<Word>Method</Word>
<Word>Parameter</Word>
<Word>PropertyReference</Word>
<Word>Relationship</Word>
<Word>RelationshipProperty</Word>
<Word>BaseEntity</Word>
<Word>Property</Word>
<Word>PropertyRelationship</Word>
<Word>MethodRelationship</Word>
<Word>Workflow</Word>
<Word>Stage</Word>
<Word>StageTransition</Word>
<Word>Step</Word>
<Word>StepTransition</Word>
<Word>State</Word>
<Word>StateTransition</Word>
<Word>StateModel</Word>
<Word>CurrentStateModel</Word>
<Word>CurrentWorkflow</Word>
<Word>CurrentStage</Word>
<Word>CurrentStageTransition</Word>
<Word>CurrentStep</Word>
<Word>CurrentStepTransition</Word>
<Word>CurrentState</Word>
<Word>CurrentStateTransition</Word>
<Word>CurrentAuditProperty</Word>
<Word>CurrentCollection</Word>
<Word>CurrentEntity</Word>
<Word>CurrentEntityReference</Word>
<Word>CurrentFeature</Word>
<Word>CurrentIndex</Word>
<Word>CurrentIndexProperty</Word>
<Word>CurrentMethod</Word>
<Word>CurrentMethodRelationship</Word>
<Word>CurrentParameter</Word>
<Word>CurrentProject</Word>
<Word>CurrentProperty</Word>
<Word>CurrentPropertyReference</Word>
<Word>CurrentPropertyRelationship</Word>
<Word>CurrentRelationship</Word>
<Word>CurrentRelationshipProperty</Word>
<Word>CurrentSqlColumn</Word>
<Word>CurrentSqlDatabase</Word>
<Word>CurrentSqlExtendedProperty</Word>
<Word>CurrentSqlForeignKey</Word>
<Word>CurrentSqlForeignKeyColumn</Word>
<Word>CurrentSqlIndex</Word>
<Word>CurrentSqlIndexedColumn</Word>
<Word>CurrentSqlProperty</Word>
<Word>CurrentSqlTable</Word>
<Word>SqlColumn</Word>
<Word>SqlDatabase</Word>
<Word>SqlExtendedProperty</Word>
<Word>SqlForeignKey</Word>
<Word>SqlForeignKeyColumn</Word>
<Word>EntityReferences</Word>
<Word>SqlIndex</Word>
<Word>SqlIndexedColumn</Word>
<Word>SqlProperty</Word>
<Word>SqlTable</Word>
<Word>SolutionName</Word>
<Word>Copyright</Word>
<Word>Description</Word>
<Word>CompanyName</Word>
<Word>ProductName</Word>
<Word>ProductVersion</Word>
<Word>SolutionDirectory</Word>
<Word>ProjectName</Word>
<Word>Namespace</Word>
<Word>DbServerName</Word>
<Word>DbName</Word>
<Word>FeatureName</Word>
<Word>EntityName</Word>
<Word>DbSchema</Word>
<Word>SourceName</Word>
<Word>PluralEntityName</Word>
<Word>PropertyName</Word>
<Word>DataTypeCode</Word>
<Word>DataTypeName</Word>
<Word>IdentifierTypeCode</Word>
<Word>IdentifierTypeName</Word>
<Word>EntityTypeCode</Word>
<Word>EntityTypeName</Word>
<Word>IsAddAuditProperty</Word>
<Word>IsUpdateAuditProperty</Word>
<Word>IsValueGenerated</Word>
<Word>IsPrimaryKeyMember</Word>
<Word>IsForeignKeyMember</Word>
<Word>Count</Word>
<Word>Precision</Word>
<Word>Scale</Word>
<Word>ItemsMin</Word>
<Word>ItemsMax</Word>
<Word>ReferencedItemsMin</Word>
<Word>ReferencedItemsMax</Word>
<Word>DatabaseTypeCode</Word>
<Word>DatabaseTypeName</Word>
<Word>UserName</Word>
<Word>Password</Word>
<Word>InitialValue</Word>
<Word>IsNullable</Word>
<Word>Order</Word>
<Word>CollectionName</Word>
<Word>PropertyReferenceName</Word>
<Word>EntityReferenceName</Word>
<Word>MethodName</Word>
<Word>MethodTypeCode</Word>
<Word>MethodTypeName</Word>
<Word>ParameterName</Word>
<Word>IndexName</Word>
<Word>IsPrimaryKeyIndex</Word>
<Word>IsUniqueIndex</Word>
<Word>RelationshipName</Word>
<Word>SolutionID</Word>
<Word>ProjectID</Word>
<Word>EntityID</Word>
<Word>BaseEntityID</Word>
<Word>FeatureID</Word>
<Word>ReferencedEntityID</Word>
<Word>PropertyID</Word>
<Word>ReferencedPropertyID</Word>
<Word>MethodID</Word>
<Word>ParameterID</Word>
<Word>IndexID</Word>
<Word>RelationshipID</Word>
<Word>StateModelName</Word>
<Word>StateName</Word>
<Word>StateTransitionName</Word>
<Word>WorkflowName</Word>
<Word>StageName</Word>
<Word>StageTransitionName</Word>
<Word>StepName</Word>
<Word>StepTransitionName</Word>
<Word>StateModelID</Word>
<Word>StateID</Word>
<Word>StateTransitionID</Word>
<Word>FromStateID</Word>
<Word>ToStateID</Word>
<Word>WorkflowID</Word>
<Word>StageID</Word>
<Word>StageTransitionID</Word>
<Word>FromStageID</Word>
<Word>ToStageID</Word>
<Word>StepID</Word>
<Word>StepTransitionID</Word>
<Word>FromStepID</Word>
<Word>ToStepID</Word>
<Word>Template</Word>
<Word>Tag</Word>
<Word>Tags</Word>
<Word>TagName</Word>
<Word>ParameterCount</Word>
<Word>PropertyReferenceCount</Word>
<Word>PropertyCount</Word>
<Word>CollectionCount</Word>
<Word>EntityReferenceCount</Word>
<Word>MethodCount</Word>
<Word>EntityCount</Word>
<Word>SqlTableCount</Word>
<Word>IsAuditProperty</Word>
<Word>IsBaseProperty</Word>
<Word>DefaultSourceName</Word>
<Word>OriginalName</Word>
<Word>IsAutoUpdated</Word>
<Word>ProjectReferenceCount</Word>
<Word>ProjectCount</Word>
<Word>SqlDatabaseID</Word>
<Word>SqlTableID</Word>
<Word>SqlColumnID</Word>
<Word>SqlIndexID</Word>
<Word>SqlIndexedColumnID</Word>
<Word>SqlForeignKeyID</Word>
<Word>SqlForeignKeyColumnID</Word>
<Word>SqlPropertyID</Word>
<Word>SqlExtendedPropertyID</Word>
<Word>SqlColumnName</Word>
<Word>DbID</Word>
<Word>DataType</Word>
<Word>MaximumLength</Word>
<Word>NumericPrecision</Word>
<Word>NumericScale</Word>
<Word>Default</Word>
<Word>DefaultSchema</Word>
<Word>IsFullTextIndexed</Word>
<Word>IsForeignKey</Word>
<Word>InPrimaryKey</Word>
<Word>PrimaryKeyColumnCount</Word>
<Word>ForeignKeyColumnCount</Word>
<Word>PrimaryAndForeignKeyColumnCount</Word>
<Word>Nullable</Word>
<Word>Identity</Word>
<Word>IdentitySeed</Word>
<Word>IdentityIncrement</Word>
<Word>Urn</Word>
<Word>State</Word>
<Word>SqlTableName</Word>
<Word>CreateDate</Word>
<Word>DateLastModified</Word>
<Word>SqlDatabaseName</Word>
<Word>Owner</Word>
<Word>PrimaryFilePath</Word>
<Word>DefaultFileGroup</Word>
<Word>DefaultFullTextCatalog</Word>
<Word>Status</Word>
<Word>UserName</Word>
<Word>SqlExtendedPropertyName</Word>
<Word>Value</Word>
<Word>SqlForeignKeyName</Word>
<Word>ReferencedKey</Word>
<Word>ReferencedTable</Word>
<Word>ReferencedTableSchema</Word>
<Word>IsChecked</Word>
<Word>IsSystemNamed</Word>
<Word>SqlForeignKeyColumnName</Word>
<Word>ReferencedColumn</Word>
<Word>SqlIndexName</Word>
<Word>IsClustered</Word>
<Word>IsUnique</Word>
<Word>IsXmlIndex</Word>
<Word>IsFullTextKey</Word>
<Word>FileGroup</Word>
<Word>SqlIndexedColumnName</Word>
<Word>IsIncluded</Word>
<Word>IsComputed</Word>
<Word>Descending</Word>
<Word>SqlPropertyName</Word>
<Word>Type</Word>
<Word>Schema</Word>
<Word>ItemIndex</Word>
<Word>Text</Word>
<Word>Path</Word>
<Word>LibraryDirectory</Word>
<Word>IsRelatedToProperty</Word>
<Word>EntityAndBaseEntities</Word>
<Word>BaseAndEntityEntities</Word>
<Word>PathRelationships</Word>
<Word>ExtendingEntities</Word>
<Word>Record</Word>
<Word>UnderscoreCase</Word>
<Word>CamelCase</Word>
<Word>Find</Word>
<Word>FindAll</Word>
<Word>Substring</Word>
<Word>Replace</Word>
<Word>ToLower</Word>
<Word>ToUpper</Word>
<Word>StartsWith</Word>
<Word>EndsWith</Word>
<Word>IndexOf</Word>
<Word>Contains</Word>
<Word>Length</Word>
<Word>Column</Word>
<Word>Filter</Word>
<Word>FilterProtected</Word>
<Word>FilterIgnored</Word>
<Word>File</Word>
<Word>FileExists</Word>
<Word>Trim</Word>
<Word>TrimStart</Word>
<Word>TrimEnd</Word>
<Word>RegexIsMatch</Word>
<Word>RegexReplace</Word>
<Word>LogValue</Word>
<Word>HasPropertyNamed</Word>
<Word>ItemFile</Word>
<Word>ItemPath</Word>
<Word>.</Word>
<Word>+</Word>
<Word>-</Word>
<Word>*</Word>
<Word>/</Word>
</Keywords>
<Keywords color="Method">
<Word>TAB</Word>
<Word>TABSTRING</Word>
<Word>USEPROTECTEDAREAS</Word>
<Word>PROTECTEDAREASTART</Word>
<Word>PROTECTEDAREAEND</Word>
<Word>USEIGNOREDAREAS</Word>
<Word>IGNOREDAREASTART</Word>
<Word>IGNOREDAREAEND</Word>
<Word>USETABS</Word>
<Word>NOW</Word>
<Word>USER</Word>
</Keywords>
</RuleSet>
</Span>
<Span color="OutputProperty" multiline="true">
<Begin color="Symbol"><%%></Begin>
<End color="Symbol">%%></End>
</Span>
<Span color="Phrase" multiline="true">
<Begin color="Symbol"><%%-</Begin>
<End color="Symbol">%%></End>
</Span>
<Keywords color="Literal">
<Word>true</Word>
<Word>false</Word>
<Word>null</Word>
</Keywords>
<Span color="Literal">
<Begin>"</Begin>
<End>"</End>
<RuleSet>
<!-- nested span for escape sequences -->
<Span begin="\\" end="." />
</RuleSet>
</Span>
<Rule color="Literal">
\b0[xX][0-9a-fA-F]+ # hex number
| \b
( \d+(\.[0-9]+)? #number with optional floating point
| \.[0-9]+ #or just starting with floating point
)
([eE][+-]?[0-9]+)? # optional exponent
</Rule>
</RuleSet>
</Span>
</RuleSet>
</SyntaxDefinition>
|
|
|
|
|
Can you please post a few code snippets?
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Thanks Chris,
You can see some Mo+ code snippets at the bottom of this article:
Mo+- An evolution of the template based code generator[^]
If you have access to the earlier version of this article, you will see image versions of the snippets with the correct highlighting colors.
|
|
|
|
|
I updated the following article, which at the bottom shows Mo+ code samples with associated images to show proper highlighting:
Mo+- An evolution of the template based code generator[^]
If you do plan to take action on supporting highlighting for Mo+ and need any more info, let me know. If you don't plan on adding Mo+, I understand. I think the long term solution should be to support custom highlighting, to support new/obscure languages, and for general exceptions. For example, in the article linked above, I'd ideally like to properly highlight the CodeSmith code blocks, which is close to ASP.net, but a little different.
Thanks,
Dave
|
|
|
|
|
There is a "member" which got its account deactivated because of spamming in the Lounge, but said member is still happily spamming away. Others have noticed this before, so my suggestion is if it were possible to sign out an account that gets deactivated. This would force that member to try logging back in, which would be impossible since the account is no longer active, but it would keep them from spamming with an already deactivated account, wouldn't it?
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
I just had a nightmarish experience while answering questions in Q/A. I had to post a couple of links to MSDN and Wiki, but my links always ended up getting truncated. But it was working fine on the preview option. I had to go for at least 3 revisions for a single link. A bug lurking somewhere?
Or an attempt to curb spam. If this is the case, please keep some whitelists.
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Carl von Clausewitz
Source
|
|
|
|
|
|
I just posted several links in two separate posts in the Spam and Abuse forum and I am not having this problem.
I am using IE8 on WinXP SP3. Which browser are you using?
Soren
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
|
I did not check the answer you linked to until just now. Are both of you reporting this "truncation behavior" for lmgtfy.com links? Perhaps that is somehow the problem and not really links in general.
[EDIT]
Never mind. I just looked at the links you had posted in the first version of your answer.
[/EDIT]
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
modified 20-Jul-13 1:20am.
|
|
|
|
|
No not only for lmgtfy, the same was for wiki too. And problem only persists in Q/A. In any browser. Tried using Mozilla Firefox 22.0 and IE10
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Carl von Clausewitz
Source
|
|
|
|
|
Hi.
On a published article, there were downloadable files till some time back. Now when someone clicked on the link, it shows an error. Here is the article:
Rename Attachments in Outlook[^]
Need help from Admins to sort this out.
Som
Som
|
|
|
|
|
Try now.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
When I go to the submit article page and click "Start Writing!", I am brought to the article editor page (aka, "Article Submission Wizard"). If I click "Cancel" and confirm the dialog asking me if I'm sure, I am redirected right back to the same page (so, I remain on the edit article page).
|
|
|
|
|
That's because we don't believe you. We know you want to write an article. You just need to admit it to yourself.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
That's the first time I have been psychoanalyzed by JavaScript.
|
|
|
|
|
I went to the submit article page and selected "Tip/Trick" in the "Submit a" drop down, then clicked "Start Writing!»". On the right of the article editor page, the "Type" was shown as "Article" rather than "Tip/Trick".
|
|
|
|
|
Fixed. Deploy post caffeine.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Exactly, what I mean in these circumstances
1. Post a solution to your own question, mark it as a solution and give it a +5 (Tested by mistake, a long long time ago )
2. Give a +5 to your own article. (Untested, but it appears as if it's possible)
3. Bookmark your own article. (Untested, but it appears as if it's possible)
4. Up your own message, unlimited times. (Untested)
A troll will just be waiting to grab such chances.
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
modified 23-Jul-13 3:07am.
|
|
|
|
|
1. This may well be valid, if it's a useful solution.
2. This is a known and acceptable feature.
3. Bookmark, why not?
3b. Your vote is only counted once, however many times you retry it.
Use the best guess
|
|
|
|
|
Richard MacCutchan wrote: 3b
That was a sheepy mistake...I'm feeling sleepy, corrected it
Richard MacCutchan wrote: This is a known and acceptable feature.
Never knew, but I feel self voting isn't an ethical practice?
Richard MacCutchan wrote: 1. This may well be valid, if it's a useful solution.
Yeah I agree, but a +5 by self and 25 for posting... (OK, I accept, I might be bringing some SO stuff here)
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Carl von Clausewitz
Source
|
|
|
|
|
Amitosh S.M. wrote: 3. Bookmark your own article. (Untested, but it appears as if it's possible)
You can, but you don't will get any points (Tested).
Amitosh S.M. wrote: <layer>4. Up your own message, unlimited times. (Untested)
You can't. You'll get a message "You can't vote for your own items."
|
|
|
|
|
how about updating the theme and adding some angluar ,jquery .
and so on ?
|
|
|
|
|
No, I won't want that. It will surely be incompatible with my IE6/7/8 (maintained for historical reasons in various computers). Though color choice is highly subjective, most agree on the point that the Orange is beautiful. I asked that[^](link to lounge, sorry for cross-linking), quite some days ago.
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.
Source
|
|
|
|