Skip to content

Commit 9af1fe5

Browse files
committed
added Java option to language
1 parent 366f502 commit 9af1fe5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Are you tired of sending code snippets back and forth, struggling to debug and c
1010
- Changes are reflected in real time
1111
- Copy button to copy the room id to clipboard
1212
- Leave button to leave the room
13-
- Supports syntax highlighting (currently only for JavaScript)
13+
- Supports syntax highlighting for different programming languages
14+
- Users can choose theme based on their preferences
1415
- Users can leave the room and rejoin later to continue editing
1516
- Joining & leaving of users is also reflected in real time
1617

@@ -25,7 +26,7 @@ Are you tired of sending code snippets back and forth, struggling to debug and c
2526

2627
- Node.js (v20.11.1)
2728
- npm (10.2.4)
28-
- pm2 (5.3.1) : `npm i -g pm2`
29+
- pm2 (5.3.1) : run `npm i -g pm2` to install pm2 globally
2930

3031
**Note:** I have used nvm (v0.39.7) to manage my node versions. View nvm official [documentation](https://github.com/nvm-sh/nvm) to install it.
3132

@@ -93,7 +94,7 @@ In case you want to fix it yourself, feel free to make a pull request.
9394
1. [x] Added syntax highlighting for multiple languages
9495
2. [x] Added support for multiple themes
9596
3. [x] Added support for saving the last theme and language selected by the user in local storage
96-
4. [ ] Add support to accept or reject new users trying to join the room
97+
4. [x] Add support to accept or reject new users trying to join the room
9798
5. [ ] Add to implement video and voice chat feature inside the editor
9899
6. [ ] Add support for local code file uploading
99100

src/pages/EditorPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const EditorPage = () => {
118118
<label>
119119
Select Language:
120120
<select value={lang} onChange={(e) => {setLang(e.target.value); window.location.reload();}} className="seLang">
121-
<option value="clike">C / C++ / C#</option>
121+
<option value="clike">C / C++ / C# / Java</option>
122122
<option value="css">CSS</option>
123123
<option value="dart">Dart</option>
124124
<option value="django">Django</option>

0 commit comments

Comments
 (0)