Mark/th: Difference between revisions

From xat wiki
(Created page with "==การใช้งาน==")
(Created page with "การตั้งค่า ข้อความที่จะเน้น พิมพ์ '''"$1=keyword1,keyword2"''' ในแชทบ็อกซ์. '''คำหล...")
Line 11: Line 11:
==การใช้งาน==
==การใช้งาน==


To set keywords to highlight, type '''"$mark=keyword1,keyword2"''' into the chatbox. '''These keywords must be at least 3 letters.'''
การตั้งค่า ข้อความที่จะเน้น พิมพ์ '''"$mark=keyword1,keyword2"''' ในแชทบ็อกซ์. '''คำหลักเหล่านี้จะต้องมีอย่างน้อย 3 ตัวอักษร.'''


You can use a different highlight color for each word by adding a hex color code after it.
You can use a different highlight color for each word by adding a hex color code after it.

Revision as of 13:54, 26 December 2017

Template:Img is only allowed in User: namespace. Use [[File:]] (more on that here) or Template:Gallery on articles instead.

Mark จะให้คุณเลือกข้อความที่ต้องการเน้นให้เห็นชัดทั้งในการคุยส่วนตัวและในห้องหลัก ด้วยสีที่เราเลือก.

คุณไม่สามารถดูคำที่ไฮไลต์ถ้าคุณด้วยตัวเอง ผู้ใช้รายอื่นจะต้องพิมพ์คำที่ไฮไลต์ที่คุณตั้งค่าไว้.

การใช้งาน

การตั้งค่า ข้อความที่จะเน้น พิมพ์ "$mark=keyword1,keyword2" ในแชทบ็อกซ์. คำหลักเหล่านี้จะต้องมีอย่างน้อย 3 ตัวอักษร.

You can use a different highlight color for each word by adding a hex color code after it.

For example, if you type "$mark=she,the,ask,you,hey#ff0000,guy#0000ff", the word "hey" would be highlighted in red and the word "guy" would be highlighted in blue. The other words (she, the, ask, you) would be highlighted in yellow, the default color.

If someone types a word longer than 3 letters into the chat that contains your keyword, the entire word will be highlighted. For example, if you set the keyword "fre" to be the color blue, then the words "free", "freelancer", "fred", and "frequent" would all be highlighted in blue too.

Combining words

Combined words, e.g. "hey-fred", would be red (since "hey" is set to red in our example).

When combining two words that have been defined as two different colors, the one that was defined first will be the color chosen to highlight the entire word.

For example, if you type "$mark=fre#ff0000,hey#0000ff", and someone types "Hey-Fred", then the entire phrase would be highlighted in red, since it was defined first.