You need to configure the language to implement syntax highlighting in Monaco Editor. Here, we introduce the related operations.

Set Language

If setting the language during initialization, the operation is as follows:

1
2
3
4
monaco.create(el, {
...
language: 'sol',
})
Read more »

On November 1st, OpenAI officially launched ChatGPT Search. After using it for one day, I must say I can’t live without it. Here is an introduction to this excellent feature.

Usage Restrictions

  1. Currently available only to Plus, Team, and SearchGPT waitlist users.
  2. Enterprise and educational users will gain access in the coming weeks.
  3. Free users will need to wait several more months.

Usage Instructions

Read more »

When submitting a Merge Request (MR) for a project branch, there are three options: Merge, Rebase, and Squash.

What are the differences between these three options, and how should you choose? Here’s a summary.

Merge

The essence of Merge is creating a new commit node, with all commits from the source branch brought over. If there were initially three commits, after the Merge, four commit nodes will exist, with one being the Merge Commit. The commit created by Merge also carries the source branch’s commit information. Therefore, in many Git GUI tools, these details form a commit relationship graph.

Rebase and merge

Read more »

I learned about the tag’s custom target attribute during the technical weekly meeting, and here is my note.

MDN Specification

HTML target

Where to display the linked URL as the name for a browsing context (a tab, window, or <iframe>). The following keywords have special meanings for where to load the URL: _self, _blank, _parent, _top.

Read more »

What the bug is

When accessing the web page in Chrome, everything is normal, but the page crashes directly when the developer tools are opened. If the page is refreshed with the developer tools open, it crashes but usually loads and runs when the developer tools are closed.

Version: Chrome v130.0.6723.70. Version v129 usually works.

Code Analysis

Read more »
0%