### Apply Styling to Various Participant Types Source: https://sequencediagram.org/instructions.html/instructions Examples of applying colors, line thickness, and styling to different participant types like actor, boundary, control, database, entity, and standard participants. ```Sequence Diagram DSL actor #green:0.5 Actor boundary #ff00ff:2 Boundary control :1 Control database #blue:1 Database #red entity :0.5 Entity participant :0 Participant participant :0 "++**Participant 2**++" as p2 ``` -------------------------------- ### Sequence Diagram: Group Fragment Source: https://sequencediagram.org/instructions.html/instructions Demonstrates the 'group' fragment, which allows for custom labeling of a section within the diagram. Examples show groups with and without additional descriptive text. ```Sequence Diagram DSL group own name A->B:info end group own name [some text] A->B:info end ``` -------------------------------- ### Sequence Diagram: Angular Boxes (Over and On Sides) Source: https://sequencediagram.org/instructions.html/instructions This section provides examples of creating angular-styled boxes, both spanning over participants and positioned to their left or right. It also demonstrates specific 'aboxright' and 'aboxleft' variations for directional emphasis. ```Sequence Diagram DSL abox over A:abox over one abox over A,B:abox over several ``` ```Sequence Diagram DSL abox left of A:abox left of abox right of A:abox right of ``` ```Sequence Diagram DSL aboxright over A,B:This is angular boxright aboxleft over A,B:This is angular boxleft aboxright over A:This is angular boxright aboxleft over B:This is angular boxleft aboxright right of A:This is angular boxright aboxright left of B:This is angular boxright aboxleft right of A:This is angular boxright aboxleft left of B:This is angular boxleft ``` -------------------------------- ### Sequence Diagram: Failure Messages Source: https://sequencediagram.org/instructions.html/instructions This section shows how to indicate a message failure in a sequence diagram using an 'x' as the arrow head. Examples include various styles and combinations with color and delay. ```Sequence Diagram DSL A-#redxB:failure 1 C-xB:failure 2 Bx-B:failure 3 C(5)x--A:failure 4 ``` -------------------------------- ### Implement Automatic Message Numbering Source: https://sequencediagram.org/instructions.html/instructions Details how to enable and control automatic numbering for subsequent messages in a sequence diagram using the 'autonumber' statement. It demonstrates starting numbering from a specific value and turning numbering off. ```Sequence Diagram DSL autonumber 1 A->B:info B->B:info autonumber 10 C->D:info A<-B:info A->B:info autonumber off B->C:info C->D:info ``` -------------------------------- ### Specify Fonts for Sequence Diagram Text Source: https://sequencediagram.org/instructions.html/instructions Shows how to change the font family for text within a sequence diagram using the 'fontfamily' keyword. Examples include specifying a custom font name or using generic browser-selected fonts like 'sans-serif' or 'mono'. ```Sequence Diagram DSL fontfamily mono participant A note over A:This is mono spaces ``` -------------------------------- ### Use Font Awesome 6 Icons as Participants Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to use Font Awesome 6 Solid, Regular, and Brands icons as participants, including styling and custom names. ```Sequence Diagram DSL fontawesome6solid f48e "++**Syringe**++" as Syringe #red fontawesome6regular f0f8 Hospital #blue fontawesome6brands f3b6 Jenkins #green ``` -------------------------------- ### Creating Participants with Messages in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section describes how to create new participants by sending a message to them, using the `participantNameA->*participantNameB: message` syntax. It also shows how to add notes over the newly created participant. ```Sequence Diagram DSL participant A actor X participant B A->B:info B-->*C:<> note over C:do something B<-C:info destroy C B->*X:message to X note over X:do something destroyafter X A->B:info ``` -------------------------------- ### Use Image as Participant Source: https://sequencediagram.org/instructions.html/instructions Shows how to embed a PNG image as a participant using a base64 data URL. Note the size limitations and rendering behavior. ```Sequence Diagram DSL image data:image/png;base64,iVB... png ``` -------------------------------- ### Basic Text Styling in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to apply fundamental text styles such as bold, italic, small, big, monospaced, and strikethrough. It also shows combinations like big and bold, and italic and small text. ```Sequence Diagram DSL box over A:**some bold text** box over A://some italic text// box over A:--some small text-- box over A:++some big text++ box over A:""some big text"" box over A:~~some big text~~ box over A:++**Big and bold\nlines of text**++\n//--italic and small--// ``` -------------------------------- ### Sequence Diagram: Basic Frame Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to draw a 'frame' around the entire sequence diagram, providing a visual boundary and an overall title for the diagram. ```Sequence Diagram DSL frame Example Diagram A->B:info C->A: info note over B,C:info ``` -------------------------------- ### Apply Global and Specific Entity Styling in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to apply global styling to various entity types (participants, notes, messages, dividers, boxes) using keywords like 'participantstyle' and 'notestyle'. It shows how to combine styling with text formatting and how to stop styling within entity text. ```Sequence Diagram DSL participantstyle //** notestyle //** messagestyle //** actor "Long Actor" as Actor participant "Long test" as test Actor->test:info info ++info++ info info info note over Actor:info info info info info info info ``` -------------------------------- ### Define Participant with Multi-line and Styled Name Source: https://sequencediagram.org/instructions.html/instructions Shows how to define a standard participant with a multi-line name that includes bold and italic styling. ```Sequence Diagram DSL participant "some long\nname with **//styling//**" as participantMultiline ``` -------------------------------- ### Sequence Diagram: Links in Participant Names Source: https://sequencediagram.org/instructions.html/instructions Shows how to include clickable links directly within the name of a participant. This allows participants themselves to be interactive elements. ```Sequence Diagram DSL participant "Participant with a link" as Alice Alice->Bob:info ``` -------------------------------- ### High Contrast Text with Difference Styling Source: https://sequencediagram.org/instructions.html/instructions Demonstrates the tag, which inverts the text color for high contrast, typically used in combination with white text on dark backgrounds. ```Sequence Diagram DSL participantgroup #darkblue participant AAAAAAAAAAAAAA end participantgroup #black participant CCCCCCCCCCCCCC end AAAAAAAAAAAAAA->CCCCCCCCCCCCCC:abcdefghijklmnopqrstuvwxy ``` -------------------------------- ### Define Actor with Multi-line and Styled Name Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to define an actor participant with a multi-line name that includes bold and italic styling, and a custom color. ```Sequence Diagram DSL actor "**++Big and\nbold name" as actorMultiline #red ``` -------------------------------- ### Sequence Diagram: Message Types and Styling Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates various message types including synchronous, asynchronous, self-referencing, and options for customizing message line weight and color. It covers the fundamental syntax for drawing interactions between participants. ```Sequence Diagram DSL A->B:request A<--B:response ``` ```Sequence Diagram DSL A->>B:request A<<--B:response ``` ```Sequence Diagram DSL A->A:self message ``` ```Sequence Diagram DSL Alice-:4>Bob:Test12345 Alice-:2>>Bob:Test Alice-#00ff00:2>Bob:Test Alice--#red:4>Bob:Test Alice<<#red:3--Bob:Test Alicex#red:3-Bob:Test Alice-:4>(5)Bob:Test Bob-:4>Bob:Test Alice<-:3>Bob:Test Alice<-#00ff00:2>Bob:Test Alice<-#red:3>Bob:Test ``` -------------------------------- ### Subscript and Superscript Text Source: https://sequencediagram.org/instructions.html/instructions Illustrates the use of and tags to render text as subscript or superscript, respectively. ```Sequence Diagram DSL A->B:Message1[1] A->B:x40 ``` -------------------------------- ### Use Material Design Icon as Participant Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to use a Material Design Icon (MDI) as a participant in the diagram, identified by its unicode code point. ```Sequence Diagram DSL materialdesignicons F1FF escalator ``` -------------------------------- ### Sequence Diagram: Optional Fragment (opt) Source: https://sequencediagram.org/instructions.html/instructions Illustrates the 'opt' fragment type, which encloses a sequence of messages that may or may not occur. The enclosed actions are optional based on a condition. ```Sequence Diagram DSL opt optional note over A:info A->B:info end ``` -------------------------------- ### Setting Background Color for Text Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to apply a background color to text using the tag, applicable to participant names and messages. ```Sequence Diagram DSL participant "AAAAAAAAAA" as A participant B A->B:background no background ``` -------------------------------- ### Sequence Diagram: Basic Participant Group Source: https://sequencediagram.org/instructions.html/instructions Explains how to define a 'participantgroup' to visually enclose a set of participants. Groups can be colored and labeled. ```Sequence Diagram DSL participantgroup #lightgreen **Group 1** participant A participant B end participantgroup #lightblue **Long\nname** participant C end B->C:info note over A,B:info ``` -------------------------------- ### Sequence Diagram: Alternative Fragment (alt) Source: https://sequencediagram.org/instructions.html/instructions Shows the 'alt' fragment type, used to define alternative message sequences. It supports multiple 'else' branches, each representing a different execution path. ```Sequence Diagram DSL alt case 1 A->B:info else case 2 A->B:info else case 3 A->B:info end ``` -------------------------------- ### Sequence Diagram: Incoming and Outgoing Messages Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates how to represent messages that originate from outside the diagram or terminate outside the diagram using special `[` and `]` participants. This is useful for showing external interactions. ```Sequence Diagram DSL [->A:info B->]:info ``` -------------------------------- ### Sizing Text in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions Shows how to control the size of text using the tag, allowing for different text sizes within the same line or note. ```Sequence Diagram DSL note over Bob:infoinfoinfoinfo ``` -------------------------------- ### Applying Color and Complex Styling Combinations Source: https://sequencediagram.org/instructions.html/instructions Illustrates the use of color tags to change text color and how to combine multiple styling options (color, bold, italic, big) within participant names and message boxes. It also shows escaping special characters like '+' in 'C++'. ```Sequence Diagram DSL participant "Alice//**Long** ++name++//" as Alice box over Alice:Combinations:\n++**Big and bold green\nlines of text**++\n//--italic and small--//\n++Writing C\+\+ in big text using \ to escape +++ ``` -------------------------------- ### Aligning Text in Notes Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to align text within notes to the left, center, or right using the tag. ```Sequence Diagram DSL note over Alice:infoinfoinfo\ninfo note over Alice:infoinfoinfo\ninfo note over Alice:infoinfoinfo\ninfo ``` -------------------------------- ### Display Participants at Bottom of Diagram Source: https://sequencediagram.org/instructions.html/instructions Demonstrates the use of the `bottomparticipants` keyword to render all defined participants at the bottom of the sequence diagram, including various participant types and messages. ```Sequence Diagram DSL bottomparticipants participant A participant "BBBB\nBBBB" as B materialdesignicons f14d note fontawesome6regular f0f8 Hospital fontawesome6brands f3b6 Jenkins actor Actor A->B:info A->note:info A->Hospital:info A->Jenkins:info A->Actor:info ``` -------------------------------- ### Sequence Diagram: Non-Instantaneous Messages and Spacing Source: https://sequencediagram.org/instructions.html/instructions This section illustrates how to create messages with a specified delay, indicating non-instantaneous communication, and how to adjust diagram spacing to accommodate them. It also shows how delays interact with participant activation and deactivation. ```Sequence Diagram DSL participant A participant B participant C A->(1)B:info A(1)<--B:info A(1)<-C:info B->(5)C:info\ninfo activate B activate C B(1)<--C:info deactivate C deactivate B ``` ```Sequence Diagram DSL Client->(5)Server:first sent message space -6 Client->Server:later message ``` -------------------------------- ### Applying Stroke Effect to Text Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to add a stroke (outline) to text using the tag, and how it can be combined with other styling like color, bold, and big text. ```Sequence Diagram DSL participantgroup #gray Group participant A participant B end A->B:stroke text 1 A->B:++**stroke text 2**++ ``` -------------------------------- ### Strikethrough Text Styling Source: https://sequencediagram.org/instructions.html/instructions Shows how to apply a strikethrough effect to text using the '~~text~~' syntax, applicable to participant names and messages. ```Sequence Diagram DSL participant "Long ~~strikethrough~~ name" as Alice Alice->Bob:Click and ~~drag to create a request~~ or\ntype it in the source area to the left ``` -------------------------------- ### Sequence Diagram: Standard Boxes (Over and On Sides) Source: https://sequencediagram.org/instructions.html/instructions This section illustrates how to draw standard rectangular boxes that enclose one or multiple participants or are placed to their sides. Boxes help group related elements or highlight specific sections. ```Sequence Diagram DSL box over A:box over one box over A,B:box over several ``` ```Sequence Diagram DSL box left of A:box left of box right of A:box right of ``` -------------------------------- ### Monospaced Text Styling Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to apply monospaced text styling using double quotes around the text. ```Sequence Diagram DSL note over A:""This is mono spaced"" ``` -------------------------------- ### Sequence Diagram: Participant Group Border Styling Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to apply custom border styling to participant groups, including border color and thickness, to enhance visual distinction. ```Sequence Diagram DSL participantgroup #lightgreen #blue:3 Name1 participant Bob1 participant Bob2 end participantgroup #lightblue :2 Name2 participant Alice1 participant Alice2 end participantgroup #pink :0 Name3 participant Bob3 participant Bob4 end participantgroup :0 Name4 participant Bob5 participant Bob6 end Bob1->Bob2:info Alice1->Alice2:info Bob3->Bob4:info Bob5->Bob6:info ``` -------------------------------- ### Positioning and Aligning Message Text Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to position text on messages (left, center, right) and how the 'messagestyle' keyword can set a default position for subsequent messages, which can then be overridden by individual alignment tags. ```Sequence Diagram DSL participant AAAAAAAAAA participant BBBBBBBBBB participant CCCCCCCCCC AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo messagestyle AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo messagestyle AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo messagestyle AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo AAAAAAAAAA->CCCCCCCCCC:info info info\ninfo ``` -------------------------------- ### Sequence Diagram: Loop Fragment Source: https://sequencediagram.org/instructions.html/instructions Demonstrates the 'loop' fragment type, which indicates that a sequence of messages is repeated multiple times. A condition for the loop can be specified. ```Sequence Diagram DSL loop i < 1000 note over A:info A->B:info end ``` -------------------------------- ### Creating and Managing References in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section explains how to create, edit, move, and delete references within a sequence diagram. References allow grouping interactions over specific participants and can be customized with text and position. New lines within reference text are created using "\n". ```Sequence Diagram DSL A->B:info ref over B,C:other interaction C->D:info ``` -------------------------------- ### Sequence Diagram: Expandable Fragment Source: https://sequencediagram.org/instructions.html/instructions Illustrates the 'expandable' fragment, which creates a collapsible section in the diagram. It can be defined in a collapsed ('-') or expanded ('+') state. ```Sequence Diagram DSL A->B:info1 expandable- info 1234567890 B->C:info2 C->D:info3 D->E:info4 end E->F:info5 expandable+ info qwertyurtyuiortyuioasdfghjkwertyuio B->C:info2 C->D:info3 D->E:info4 end ``` -------------------------------- ### Managing Participant Activations and Deactivations in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section explains how to manually activate and deactivate participants using `activate participantName` and `deactivate participantName`. It covers scenarios where deactivation occurs immediately or after a space, and demonstrates a callback scenario. ```Sequence Diagram DSL participant A participant B participant C participant D A->B:info activate B B->C:info activate C C->>D:info activate D B<--C:info deactivate C A<--B:info deactivate B B<-D:callback deactivate D activate B A<<--B:info deactivate B ``` -------------------------------- ### Adding Comments in Sequence Diagram Source Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to add single-line comments within the sequence diagram source code. Comments can be prefixed with either '#' or '//' and are ignored by the diagram renderer. ```Diagram Source # This is a comment // This is also a comment ``` -------------------------------- ### Participant Activation with Self-References in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates how activations behave when a participant sends a message to itself. It shows the use of `deactivateafter` to create a gap before deactivation and how to manage multiple activations. ```Sequence Diagram DSL participant B participant D activate D B->D:info activate B deactivateafter B D->D:info activate D space deactivate D ``` -------------------------------- ### Apply Colors to Sequence Diagram Elements Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to apply colors to different elements in a sequence diagram, including participants, databases, dividers, notes, boxes, messages, activations, and fragments. Colors can be specified using HTML color names or hex codes. ```Sequence Diagram DSL participant A#red database B#green participant A participant B participant C participant D ==info==#lightgreen note over A#yellow:info rbox over A#violet:info abox right of A#steelblue:info A-#red>B:info A<#green--B:info A--#blue>>B:info participant A participant B activate A #00ee77 A->B:info activate B #red B->B:info activate B #lightgray deactivateafter B loop #ff00ff info 1234567890 B->C:info2 C->D:info3 D->E:info4 end group #2f2e7b label text #white [condition] A->B:info end loop #2f2e7b #white condition A->B:info end ``` -------------------------------- ### Sequence Diagram: Using Spaces Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to insert spaces into a sequence diagram. Spaces can have positive or negative values to adjust the vertical positioning of subsequent elements, useful for visualizing message timing. ```Sequence Diagram DSL participant B participant D activate D B->D:info activate B space 3 deactivate B D->D:info activate D space deactivate D ``` -------------------------------- ### Sequence Diagram: Nested Participant Groups Source: https://sequencediagram.org/instructions.html/instructions Shows how to create hierarchical participant groups by nesting one 'participantgroup' within another, allowing for complex organizational structures. ```Sequence Diagram DSL participantgroup #lightgreen **Group 1** participantgroup #grey sub1 participant A end participantgroup #pink sub2 participant B end end participantgroup #lightblue **Long\nname** participant C end B->C:info note over A,B:info ``` -------------------------------- ### Sequence Diagram: Colored Frame Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to apply a custom color to the frame encompassing the entire diagram, allowing for visual emphasis or categorization. ```Sequence Diagram DSL frame #red Example Diagram A->B:info C->A: info note over B,C:info ``` -------------------------------- ### Sequence Diagram: Links in Message Text Source: https://sequencediagram.org/instructions.html/instructions Explains how to embed clickable links within message text and notes. These links open in a new window when clicked in the diagram and are included in SVG exports. ```Sequence Diagram DSL A->B:This text contains a link note right of B:Here is another link ``` -------------------------------- ### Arrange Elements in Parallel Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to place subsequent entries at the same Y-position in a sequence diagram using the 'parallel' statement. It clarifies that this differs from linear messages as it doesn't perform intelligent matching for different entry types. ```Sequence Diagram DSL parallel A<<-B:info B->C:info note left of D:info parallel off C->>D:info ``` -------------------------------- ### Sequence Diagram: Round Boxes (Over and On Sides) Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates how to create round-styled boxes, either enclosing one or multiple participants or placed to their left or right. Round boxes offer an alternative visual style for grouping elements. ```Sequence Diagram DSL rbox over A:rbox over one rbox over A,B:rbox over several ``` ```Sequence Diagram DSL rbox left of A:rbox left of rbox right of A:rbox right of ``` -------------------------------- ### Sequence Diagram: Parallel Fragment Source: https://sequencediagram.org/instructions.html/instructions Shows the basic 'par' fragment, used to define sections of a diagram where multiple message sequences occur concurrently. ```Sequence Diagram DSL par info A->C:info A->B:info end ``` -------------------------------- ### Explicit Participant Creation Without Messages in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates how to create a participant explicitly using `create participantName` without an initiating message. It also shows how to add a note over the created participant. ```Sequence Diagram DSL A->B:info create C note over C: C created without message A<-C:info ``` -------------------------------- ### Entry Spacing Control Source: https://sequencediagram.org/instructions.html/instructions Illustrates how to adjust the spacing between entries (messages) in a sequence diagram. Spacing can be changed globally using '+' or '-' keys, or locally using 'entryspacing' statements with specific values like '0.1' for tight spacing or '3' for wider spacing. ```SequenceDiagramDSL entryspacing 0.1 A->B:info A->B:info entryspacing 3 A->B:info entryspacing 1 A->B:info A->B:info ``` -------------------------------- ### Automatic Word Wrapping for Text Source: https://sequencediagram.org/instructions.html/instructions Shows how to enable automatic word wrapping for long text strings using the tag, specifying the character limit before wrapping. It also demonstrates interaction with manual newlines and alignment. ```Sequence Diagram DSL note over A:info info info info wrap10 info info info info info info wrap20 info info\nmanual\nmanual\nmanual info info info info info info info info info info info info ==info info info info info info info== ``` -------------------------------- ### Sequence Diagram: Parallel Thread Fragment Source: https://sequencediagram.org/instructions.html/instructions Illustrates the 'par' fragment with nested 'thread' blocks. This allows for defining concurrent message flows that execute in parallel threads. ```Sequence Diagram DSL par info A->B:info1 thread test A->B:info2 thread test A->B:info2 end ``` -------------------------------- ### Sequence Diagram: Notes (Over and On Sides) Source: https://sequencediagram.org/instructions.html/instructions This section demonstrates how to add textual notes to sequence diagrams, either spanning over one or multiple participants or positioned to their left or right. Notes can include multi-line text for detailed annotations. ```Sequence Diagram DSL note over A:note over one\nmultiple lines\nof text note over A,B:note over several ``` ```Sequence Diagram DSL note left of A:note left of note right of A:note right of ``` -------------------------------- ### Enabling and Disabling Automatic Activations in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section explains the `autoactivation on` and `autoactivation off` commands, which automatically manage participant activations on request messages and deactivations on response messages. It demonstrates how manual activations can still be combined with automatic mode. ```Sequence Diagram DSL autoactivation on A->B:info B->C:info B<-C:info B-->C:info B->B:info deactivateafter B B<--C:info A<--B:info autoactivation off A->B:info A<--B:info ``` -------------------------------- ### Participant Activation with Self-Messages in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section illustrates how activations are managed when a participant sends a message to itself. It shows the activation and deactivation flow for recursive or internal calls, including the use of `deactivateafter`. ```Sequence Diagram DSL activate Alice Alice->Alice:privateMethod() activate Alice Alice<<--Alice:returnValue deactivate Alice Alice->Alice:privateMethod() activate Alice Alice<<--Alice:returnValue deactivateafter Alice ``` -------------------------------- ### Create Linear Message Flows Source: https://sequencediagram.org/instructions.html/instructions Explains how to make subsequent messages of the same type appear linearly in a sequence diagram using the 'linear' statement. It also shows how to disable linear message rendering with 'linear off'. ```Sequence Diagram DSL linear A->B:info B->C:info C->D:info C<--D:info B<--C:info A<--B:info A->>B:info B->>C:info linear off C->>D:info ``` -------------------------------- ### Set Active Color for Participant Activations Source: https://sequencediagram.org/instructions.html/instructions Explains how to define a default active color for all activations of a participant or globally for all participants using the 'activecolor' keyword. It also shows how specific activation colors override the default. ```Sequence Diagram DSL participant B participant C participant D activecolor #red activecolor C #blue activate B B->C:info activate C C->>D:info activate D B<--C:info deactivate C deactivate B B<-D:callback activate C deactivate D activate B B->D:info deactivate B B<-D:info activate B #green ``` -------------------------------- ### Participant Spacing Control Source: https://sequencediagram.org/instructions.html/instructions Demonstrates how to control the spacing between participants in a sequence diagram. The 'participantspacing equal' statement makes the spacing between all participants equal, while 'participantspacing 50' sets a minimum spacing of 50 units. ```SequenceDiagramDSL participantspacing equal participant A participant B participant C A->B:info info info ``` -------------------------------- ### Life Line Style Customization Source: https://sequencediagram.org/instructions.html/instructions Shows how to specify the style of life lines for participants in a sequence diagram. Styles can be applied globally or to specific participants, allowing control over color (e.g., '#red'), line weight (e.g., ':4'), and line type (e.g., ':solid', ':dashed'). ```SequenceDiagramDSL participant A participant B participant C participant D lifelinestyle #red:4:solid lifelinestyle B #black:1:dashed lifelinestyle C #gray:1:solid lifelinestyle D ::dashed A->B:info B->C:info C->D:info ``` -------------------------------- ### Adding and Manipulating Dividers in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section details the process of adding, editing, moving, and deleting dividers in a sequence diagram. Dividers are used to visually separate sections of the diagram and can be customized with text and position. ```Sequence Diagram DSL participant A participant B participant C participant D ==info== ``` -------------------------------- ### Silent Participant Destruction in Sequence Diagrams Source: https://sequencediagram.org/instructions.html/instructions This section illustrates the `destroysilent participantName` command, which destroys a participant at the previous entry's y position without rendering the destroy symbol, allowing for cleaner diagram layouts. ```Sequence Diagram DSL A->>B:request A<<--B:response destroysilent B destroysilent A C->D: info ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.