Skip to content

Commit

Permalink
synced the styles
Browse files Browse the repository at this point in the history
  • Loading branch information
najmiter committed Oct 31, 2024
1 parent 00a1642 commit 3d36d4a
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 93 deletions.
72 changes: 36 additions & 36 deletions chitter.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"asm": {
"operators": [
"+", "-", "/", "*", "(", ")", "[", "]", "\"", "'", ",", ".",
"%", "=", "==", "<", ">", "!", "!=", "<=", ">=", "+=", "-=",
"*=", "/=", "&", "&&", "|", "||", "^", "~"
],
"arithmetics": [
"ADD", "SUB", "INC", "DEC", "MUL", "IMUL", "DIV", "IDIV",
"AND", "OR", "XOR", "NOT", "SHL", "SHR"
],
"criticals": ["RET", "PROC", "ENDP", "END", "INCLUDE", "SECTION"],
"instructions": [
"MOV", "MOVS", "MOVSX", "MOVZX", "CMP", "PUSH", "POP",
"PUSHAD", "POPAD", "LEA", "NOP", "HLT", "INT", "LEAVE", "CLC",
"STC", "CLD", "STD", "CLI", "STI", "CMPXCHG", "XCHG", "BSWAP",
"NOP", "PUSHF", "POPF", "REP", "REPE", "REPZ", "REPNE", "REPNZ",
"CMC", "CWDE", "CDQ", "WAIT", "CBW", "CWD", "INTO", "IRET", "OFFSET",
"PTR", "FLD", "FSTP", "SYSCALL", "USES", "COMMENT", "EQU", "GLOBAL"
],
"datatypes": [
"BYTE", "WORD", "DWORD", "QWORD", "DB", "DW", "DD",
"DQ", "REAL", "RESB", "RESW", "RESD", "RESQ"
],
"jumps": [
"JMP", "JE", "JNE", "JG", "JGE", "JL", "JLE", "JZ", "JNZ",
"JS", "JNS", "JC", "JNC", "JB", "JA", "CALL", "INVOKE"
],
"registers": [
"AL", "BL", "CL", "DL", "AH", "BH", "CH", "DH", "AX", "BX", "CX", "DX",
"EAX", "EBX", "ECX", "EDX", "RAX", "RBX", "RCX", "RDX", "DI", "SI", "EDI",
"ESI", "EBP", "ESP", "RBP", "RSP", "RDI", "RSI", "R8", "R9", "R10", "R11",
"R12", "R13", "R14", "R15", "R8B", "R8W", "R8D", "R9B", "R9W", "R9D",
"R10B", "R10W", "R10D", "R11B", "R11W", "R11D", "R12B", "R12W", "R12D",
"R13B", "R13W", "R13D", "R14B", "R14W", "R14D", "R15B", "R15W", "R15D"
]
}
"asm": {
"operators": [
"+", "-", "/", "*", "(", ")", "[", "]", "\"", "'", ",", ".",
"%", "=", "==", "<", ">", "!", "!=", "<=", ">=", "+=", "-=",
"*=", "/=", "&", "&&", "|", "||", "^", "~"
],
"arithmetics": [
"ADD", "SUB", "INC", "DEC", "MUL", "IMUL", "DIV", "IDIV",
"AND", "OR", "XOR", "NOT", "SHL", "SHR"
],
"criticals": ["RET", "PROC", "ENDP", "END", "INCLUDE", "SECTION"],
"instructions": [
"MOV", "MOVS", "MOVSX", "MOVZX", "CMP", "PUSH", "POP",
"PUSHAD", "POPAD", "LEA", "NOP", "HLT", "INT", "LEAVE", "CLC",
"STC", "CLD", "STD", "CLI", "STI", "CMPXCHG", "XCHG", "BSWAP",
"NOP", "PUSHF", "POPF", "REP", "REPE", "REPZ", "REPNE", "REPNZ",
"CMC", "CWDE", "CDQ", "WAIT", "CBW", "CWD", "INTO", "IRET", "OFFSET",
"PTR", "FLD", "FSTP", "SYSCALL", "USES", "COMMENT", "EQU", "GLOBAL"
],
"datatypes": [
"BYTE", "WORD", "DWORD", "QWORD", "DB", "DW", "DD",
"DQ", "REAL", "RESB", "RESW", "RESD", "RESQ"
],
"jumps": [
"JMP", "JE", "JNE", "JG", "JGE", "JL", "JLE", "JZ", "JNZ",
"JS", "JNS", "JC", "JNC", "JB", "JA", "CALL", "INVOKE"
],
"registers": [
"AL", "BL", "CL", "DL", "AH", "BH", "CH", "DH", "AX", "BX", "CX", "DX",
"EAX", "EBX", "ECX", "EDX", "RAX", "RBX", "RCX", "RDX", "DI", "SI", "EDI",
"ESI", "EBP", "ESP", "RBP", "RSP", "RDI", "RSI", "R8", "R9", "R10", "R11",
"R12", "R13", "R14", "R15", "R8B", "R8W", "R8D", "R9B", "R9W", "R9D",
"R10B", "R10W", "R10D", "R11B", "R11W", "R11D", "R12B", "R12W", "R12D",
"R13B", "R13W", "R13D", "R14B", "R14W", "R14D", "R15B", "R15W", "R15D"
]
}
}
102 changes: 49 additions & 53 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<link
rel="shortcut icon"
href="https://i.imgur.com/mKqNMmd.png"
type="image/x-icon"
/>
<meta charset="UTF-8" />
<meta
name="description"
content="This is an Assembly code highlighter where you can paste your code and generate copyable highlighted code for assembly language. It supports almost all the popular assemblers (NASM, MASM, etc.)."
/>
<meta
name="keywords"
content="syntax highlighter, assembly, masm, nasm, code, assembly highlighter, online, free"
/>
<meta name="author" content="najmiter" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chitter - A syntax highlighter for assembly</title>
<link rel="stylesheet" href="style.css" />
<script src="main.js" defer></script>
</head>
<head>
<link
rel="shortcut icon"
href="https://i.imgur.com/mKqNMmd.png"
type="image/x-icon"
/>
<meta charset="UTF-8" />
<meta
name="description"
content="This is an Assembly code highlighter where you can paste your code and generate copyable highlighted code for assembly language. It supports almost all the popular assemblers (NASM, MASM, etc.)."
/>
<meta
name="keywords"
content="syntax highlighter, assembly, masm, nasm, code, assembly highlighter, online, free"
/>
<meta name="author" content="najmiter" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chitter - A syntax highlighter for assembly</title>
<link rel="stylesheet" href="style.css" />
<script src="main.js" defer></script>
</head>

<body>
<main>
<header id="top">
<button id="btn-highlight">Koochi Koochi</button>
<select id="tab-size">
<option value="">Tab size</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</header>
<body>
<main>
<header id="top">
<button id="btn-highlight">Koochi Koochi</button>
<select id="tab-size">
<option value="">Tab size</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</header>

<div id="two-sections">
<div id="input" class="texts">
<textarea
spellcheck="false"
placeholder="Type or paste your assembly code..."
id="input-text"
></textarea>
</div>
<div id="output" class="texts">
<div
spellcheck="false"
contenteditable="true"
id="output-text"
></div>
</div>
</div>
</main>
</body>
<div id="two-sections">
<div id="input" class="texts">
<textarea
spellcheck="false"
placeholder="Type or paste your assembly code..."
id="input-text"
></textarea>
</div>
<div id="output" class="texts">
<div spellcheck="false" contenteditable="true" id="output-text"></div>
</div>
</div>
</main>
</body>
</html>
4 changes: 2 additions & 2 deletions settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"tab_size": 4,
"non sense": -1
"tab_size": 4,
"non sense": -1
}
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

::-webkit-scrollbar {
display: none;
display: none;
}

body {
Expand Down Expand Up @@ -154,4 +154,4 @@ code {
text-align: right;
font-size: 90%;
user-select: none;
}
}

0 comments on commit 3d36d4a

Please sign in to comment.