Highlight


			this.openPromptDialog = function () {
				this.DialogService
					.prompt({
					cancel: 'Cancel',
					ok: 'OK',
					textContent: 'What do you want to say?',
					title: 'Prompt'
				})
					.then(function (result) {
					alert(result);
				}, function () {
					alert('declined');
				});
			};
		

			<link rel="stylesheet" href="icons.css" />
			<link rel="stylesheet" href="ng-ux.css" />
			<script src="ng-ux.js"></script>
		

PrismJS


			otherLines.forEach((line: string) => {
				if (!isBlankLine(line)) {
					whitespaceLength = getWhitespaceLength(line);
					if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
						commonWhitespaceLength = whitespaceLength;
					}
				}
			});
		

			<link rel="stylesheet" href="icons.css" />
			<link rel="stylesheet" href="ng-ux.css" />
			<script src="ng-ux.js"></script>
		

Repeat as Code

Whole Element Child Elements
Inserted somewhere else

				var codeWasAlreadyHere = null;
			

Toggle Repeat Code

Whole Element

Child Elements

Toggleable Code

w/ PrismJS


				otherLines.forEach((line: string) => {
					if (!isBlankLine(line)) {
						whitespaceLength = getWhitespaceLength(line);
						if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
							commonWhitespaceLength = whitespaceLength;
						}
					}
				});
			

w/ Highlight (multiple code blocks)


				if (!isBlankLine(line)) {
					whitespaceLength = getWhitespaceLength(line);
					if (commonWhitespaceLength === -1 || whitespaceLength < commonWhitespaceLength) {
						commonWhitespaceLength = whitespaceLength;
					}
				}
			

				this.DialogService
					.prompt({
					textContent: 'What do you want to say?',
					title: 'Prompt'
				})
			
Inserted somewhere else

				var codeWasAlreadyHere = null;