Comments and Searching


03 Apr

And so, after a long a painful week of coding, I have finally finished the comments and searching functionalities.

Therefore, it is now only right to tell you about how to use them properly - or atleast, the neat little tricks.

Firstly, we'll go over the searching, because it's by far the quickest to explain. Obvious, if you type something in and hit enter you'll execute a search! That much is obvious to anybody. Typing in 'Computer' should display all 'Computer Science' and 'Computer Vision' posts.

Note: when you type in 'Computer Vision', 'Computer Science' posts should also be displayed - this is not a bug! The final part of the searching is to display the results by priority.

What you can also do is precede your query with one of the following keywords:

  • blog:
  • tutorials:
  • projects:
  • codings:

So basically, typing in 'blog: other' will query and display only results from the Blog. 'tutorials: string' will display only posts from Tutorials, etc.

Now for the main part: the comments. Typically, as you would expect, typing out your name and comment and clicking 'Post Comment' should successfully posts your comment - assuming you've done nothing silly. You'll also notice that you can select a specific avatar, just for a bit of fun~

Note: your name can only be up to 20 characters, with a comment being up to 500 characters.

The best part though, is you can display code blocks within your comments! In order to do this, you must used the [code][/code] tags; placing your code between them. You can also highlight comments, too, by using the [com][/com] tags. An exmaple would be:

[com]//hello world[/com]
print("Hello, world!");

This will be diplayed as follows:

//hello world print("Hello, world!");

And that's pretty much it! There are a few other things I plan on adding, as well as possibly increasing the length of a comment. Other than that, have fun!~

Share this:


  Allowed tags: <a> <b> <strong> <i> <em> <del> [code] [com]